mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Add specific lookup data to error message
This commit is contained in:
parent
a0b8f6a25d
commit
c7114b2571
@ -208,7 +208,7 @@ def main():
|
||||
inventory_object = module.get_one('inventories', data=lookup_data)
|
||||
|
||||
if not inventory_object:
|
||||
module.fail_json(msg='The specified inventory was not found.')
|
||||
module.fail_json(msg='The specified inventory, {0}, was not found.'.format(lookup_data))
|
||||
|
||||
inventory_source_object = module.get_one('inventory_sources', **{
|
||||
'data': {
|
||||
|
||||
@ -113,7 +113,7 @@ def main():
|
||||
inventory_object = module.get_one('inventories', data=lookup_data)
|
||||
|
||||
if not inventory_object:
|
||||
module.fail_json(msg='The specified inventory was not found.')
|
||||
module.fail_json(msg='The specified inventory, {0}, was not found.'.format(lookup_data))
|
||||
|
||||
inventory_source_object = module.get_one('inventory_sources', **{
|
||||
'data': {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user