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

View File

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

View File

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