We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc0cff6 commit 9259b4bCopy full SHA for 9259b4b
changelogs/fragments/0020-fix_sap_control_exec.yml
@@ -0,0 +1,2 @@
1
+bugfixes:
2
+ - fix a bug where some commands produces no output which cause to crash the module.
plugins/modules/sap_control_exec.py
@@ -384,7 +384,10 @@ def main():
384
result['msg'] = 'Something went wrong connecting to the SAPCONTROL SOAP API.'
385
module.fail_json(**result)
386
387
- returned_data = recursive_dict(conn)
+ if conn is not None:
388
+ returned_data = recursive_dict(conn)
389
+ else:
390
+ returned_data = conn
391
392
result['changed'] = True
393
result['msg'] = "Succesful execution of: " + function
0 commit comments