mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 14:36:00 -03:30
Add specific lookup data to error message
This commit is contained in:
@@ -208,7 +208,7 @@ def main():
|
|||||||
inventory_object = module.get_one('inventories', data=lookup_data)
|
inventory_object = module.get_one('inventories', data=lookup_data)
|
||||||
|
|
||||||
if not inventory_object:
|
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', **{
|
inventory_source_object = module.get_one('inventory_sources', **{
|
||||||
'data': {
|
'data': {
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ def main():
|
|||||||
inventory_object = module.get_one('inventories', data=lookup_data)
|
inventory_object = module.get_one('inventories', data=lookup_data)
|
||||||
|
|
||||||
if not inventory_object:
|
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', **{
|
inventory_source_object = module.get_one('inventory_sources', **{
|
||||||
'data': {
|
'data': {
|
||||||
|
|||||||
Reference in New Issue
Block a user