Skip to content

fix(python): print warning to stderr instead of stdout #152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion templates/python/configuration.mustache
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# coding: utf-8

import sys

{{>partial_header}}
class HostConfiguration:
def __init__(self,
Expand All @@ -11,7 +13,7 @@ class HostConfiguration:
print("WARNING: STACKIT will move to a new way of specifying regions, where the region is provided\n",
"as a function argument instead of being set in the client configuration.\n"
"Once all services have migrated, the methods to specify the region in the client configuration "
"will be removed.")
"will be removed.", file=sys.stderr)
"""Constructor
"""
self._base_path = "{{{basePath}}}"
Expand Down
Loading