mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 19:51:08 -03:30
linting
This commit is contained in:
@@ -106,7 +106,7 @@ def main():
|
|||||||
if name.isdigit():
|
if name.isdigit():
|
||||||
results = module.get_endpoint('projects', **{'data': {'id': name}})
|
results = module.get_endpoint('projects', **{'data': {'id': name}})
|
||||||
if results['json']['count'] == 0:
|
if results['json']['count'] == 0:
|
||||||
module.fail_json(msg='Could not find Project with ID: {0}'.format(name))
|
module.fail_json(msg='Could not find Project with ID: {0}'.format(name))
|
||||||
project = results['json']['results'][0]
|
project = results['json']['results'][0]
|
||||||
else:
|
else:
|
||||||
lookup_data = {'name': name}
|
lookup_data = {'name': name}
|
||||||
|
|||||||
Reference in New Issue
Block a user