mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
updated doc and pep8
This commit is contained in:
parent
d9d454d435
commit
cd45cfec30
@ -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()
|
||||
|
||||
@ -149,5 +149,6 @@ def main():
|
||||
|
||||
module.exit_json(**module.json_output)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
@ -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'],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user