Add specific lookup data to error message

This commit is contained in:
beeankha 2020-09-07 11:43:44 -04:00
parent a0b8f6a25d
commit c7114b2571
2 changed files with 2 additions and 2 deletions

View File

@ -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': {

View File

@ -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': {