mirror of
https://github.com/ansible/awx.git
synced 2026-01-22 23:18:03 -03:30
update
This commit is contained in:
parent
d95d8121f9
commit
d269a6d233
@ -111,7 +111,7 @@ def main():
|
||||
else:
|
||||
lookup_data = {'name': name}
|
||||
if organization:
|
||||
lookup_data['organization'] = module.resolve_name_to_id('organizations', organization)
|
||||
lookup_data['organization'] = module.get_one_by_name_or_id('organizations', organization)
|
||||
project = module.get_one('projects', data=lookup_data)
|
||||
if project is None:
|
||||
module.fail_json(msg="Unable to find project")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user