Update tower_workflow_job_template_node.py

correction to lookup inventory
This commit is contained in:
chris93111 2020-06-29 22:58:18 +02:00 committed by GitHub
parent 65a8a656f7
commit b6883ab64e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -224,7 +224,7 @@ def main():
inventory = module.params.get('inventory')
if inventory:
new_fields['inventory'] = module.resolve_name_to_id('inventory', inventory)
new_fields['inventory'] = module.resolve_name_to_id('inventories', inventory)
# Create the data that gets sent for create and update
for field_name in (