You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We where puzzled to have the answer printed to stdout, instead of a good python variable
Here is what we did to get something usable:
diff --git a/osc_sdk/sdk.py b/osc_sdk/sdk.py
index 16f4637..b81c769 100644
--- a/osc_sdk/sdk.py
+++ b/osc_sdk/sdk.py
@@ -538,7 +538,7 @@ def api_connect(service, call, profile='default', *args, **kwargs):
handler = callsservice
handler.make_request(call, *args, **kwargs)
if handler.response:
print(json.dumps(handler.response, indent=4))
return handler.response
def main():
Is it possible to have this fix in the master branch ?
Thanks in advances.
The text was updated successfully, but these errors were encountered:
Hello, while using the function api_connect,
We where puzzled to have the answer printed to stdout, instead of a good python variable
Here is what we did to get something usable:
diff --git a/osc_sdk/sdk.py b/osc_sdk/sdk.py
index 16f4637..b81c769 100644
--- a/osc_sdk/sdk.py
+++ b/osc_sdk/sdk.py
@@ -538,7 +538,7 @@ def api_connect(service, call, profile='default', *args, **kwargs):
handler = callsservice
handler.make_request(call, *args, **kwargs)
if handler.response:
def main():
Is it possible to have this fix in the master branch ?
Thanks in advances.
The text was updated successfully, but these errors were encountered: