updated doc and pep8

This commit is contained in:
sean-m-sullivan
2020-08-31 15:53:54 -05:00
parent d9d454d435
commit cd45cfec30
3 changed files with 5 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ options:
wait: wait:
description: description:
- Wait for the job to complete. - Wait for the job to complete.
default: True default: False
type: bool type: bool
interval: interval:
description: description:
@@ -183,7 +183,7 @@ def main():
optional_args['credential_passwords'] = module.params.get('credential_passwords') optional_args['credential_passwords'] = module.params.get('credential_passwords')
wait = module.params.get('wait') wait = module.params.get('wait')
interval = module.params.get('interval') interval = module.params.get('interval')
timeout = module.params.get('timeout') timeout = module.params.get('timeout')
# Create a datastructure to pass into our job launch # Create a datastructure to pass into our job launch
post_data = {} post_data = {}
@@ -259,5 +259,6 @@ def main():
'status': results['json']['status'], 'status': results['json']['status'],
}) })
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View File

@@ -149,5 +149,6 @@ def main():
module.exit_json(**module.json_output) module.exit_json(**module.json_output)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View File

@@ -176,7 +176,7 @@ def main():
if not wait: if not wait:
module.exit_json(**module.json_output) module.exit_json(**module.json_output)
# Invoke wait function # Invoke wait function
module.wait_on_url( module.wait_on_url(
url=result['json']['url'], url=result['json']['url'],