File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 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 } \n try running '#{ command_to_run } '" if result [ 'status' ] != 'success'
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
You can’t perform that action at this time.
0 commit comments