Skip to content

Commit

Permalink
Merge pull request #574 from puppetlabs/CAT-2052-fix-install-agent-bug
Browse files Browse the repository at this point in the history
(CAT-2052) Pass target container URI instead of container SHA ID to add_feature_to_node() method
  • Loading branch information
jordanbreen28 authored Oct 3, 2024
2 parents 6700713 + 63424d1 commit 553a093
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/puppet_litmus/rake_tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
Rake::Task['spec_prep'].invoke

results = install_agent(args[:collection], targets, inventory_hash)
target_index = 0
results.each do |result|
command_to_run = "bolt task run puppet_agent::install --targets #{result['target']} --inventoryfile spec/fixtures/litmus_inventory.yaml --modulepath #{DEFAULT_CONFIG_DATA['modulepath']}"
raise "Failed on #{result['target']}\n#{result}\ntry running '#{command_to_run}'" if result['status'] != 'success'
Expand Down Expand Up @@ -157,7 +158,8 @@
end

# add puppet-agent feature to successful nodes
inventory_hash = add_feature_to_node(inventory_hash, 'puppet-agent', result['target'])
inventory_hash = add_feature_to_node(inventory_hash, 'puppet-agent', targets[target_index])
target_index += 1
end

# update the inventory with the puppet-agent feature set per node
Expand Down

0 comments on commit 553a093

Please sign in to comment.