Skip to content

Commit 553a093

Browse files
Merge pull request #574 from puppetlabs/CAT-2052-fix-install-agent-bug
(CAT-2052) Pass target container URI instead of container SHA ID to add_feature_to_node() method
2 parents 6700713 + 63424d1 commit 553a093

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/puppet_litmus/rake_tasks.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128
Rake::Task['spec_prep'].invoke
129129

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

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

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

0 commit comments

Comments
 (0)