Skip to content

Commit

Permalink
Fix bug with script_params
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding committed Jan 11, 2023
1 parent de2527c commit b1a3703
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion awx/main/tasks/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,8 @@ def build_args(self, inventory_update, private_data_dir, passwords):
if inventory_update.inventory.kind == 'constructed':
for source_inventory in inventory_update.inventory.source_inventories.all():
args.append('-i')
source_inv_path = self.write_inventory_file(source_inventory, private_data_dir, f'hosts_{source_inventory.id}', {'towervars': True})
script_params = script_params = dict(hostvars=True, towervars=True)
source_inv_path = self.write_inventory_file(source_inventory, private_data_dir, f'hosts_{source_inventory.id}', script_params)
args.append(to_container_path(source_inv_path, private_data_dir))

# Add arguments for the source inventory file/script/thing
Expand Down

0 comments on commit b1a3703

Please sign in to comment.