mirror of
https://github.com/ansible/awx.git
synced 2026-04-10 20:49:24 -02:30
Changing how get_one returns
This commit is contained in:
@@ -141,7 +141,7 @@ def main():
|
||||
lookup_data = {}
|
||||
if organization:
|
||||
lookup_data['organization'] = module.resolve_name_to_id('organizations', organization)
|
||||
workflow_job_template, name = module.get_one('workflow_job_templates', name_or_id=name, data=lookup_data)
|
||||
workflow_job_template = module.get_one('workflow_job_templates', name_or_id=name, data=lookup_data)
|
||||
|
||||
if workflow_job_template is None:
|
||||
module.fail_json(msg="Unable to find workflow job template")
|
||||
|
||||
Reference in New Issue
Block a user