mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 10:57:36 -02:30
updated doc and pep8
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
@@ -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'],
|
||||||
|
|||||||
Reference in New Issue
Block a user