mirror of
https://github.com/ansible/awx.git
synced 2026-02-21 21:20:08 -03:30
updated parameters and errors
This commit is contained in:
@@ -247,9 +247,9 @@ def main():
|
||||
|
||||
# Invoke wait function
|
||||
results = module.wait_on_url(
|
||||
url=results['json']['url'],
|
||||
object_name=name,
|
||||
object_type='job',
|
||||
url=results['json']['url'],
|
||||
timeout=timeout, interval=interval
|
||||
)
|
||||
|
||||
|
||||
@@ -141,14 +141,17 @@ def main():
|
||||
|
||||
# Invoke wait function
|
||||
result = module.wait_on_url(
|
||||
url=job['url'],
|
||||
object_name=job_id,
|
||||
object_type='job',
|
||||
url=job['url'],
|
||||
timeout=timeout, interval=interval
|
||||
)
|
||||
|
||||
module.exit_json(**module.json_output)
|
||||
# Format data to keep legacy compatability.
|
||||
for k in ('id', 'status', 'elapsed', 'started', 'finished'):
|
||||
module.json_output[k] = result['json'].get(k)
|
||||
|
||||
module.exit_json(**module.json_output)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
@@ -179,9 +179,9 @@ def main():
|
||||
|
||||
# Invoke wait function
|
||||
module.wait_on_url(
|
||||
url=result['json']['url'],
|
||||
object_name=name,
|
||||
object_type='workflow_job',
|
||||
url=result['json']['url'],
|
||||
timeout=timeout, interval=interval
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user