Skip to content

Commit

Permalink
(CONT-1243) - Skip tear_down if no provisioner found
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbreen28 committed Jul 25, 2023
1 parent 929a4ac commit 466b237
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/puppet_litmus/rake_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ def tear_down_nodes(targets, inventory_hash)

results = {}
targets.each do |node_name|
next if node_name == 'litmus_localhost'
# next if local host or provisioner fact empty/not set (GH-421)
next if node_name == 'litmus_localhost' || facts_from_node(inventory_hash, node_name)['provisioner'].nil?

result = tear_down(node_name, inventory_hash)
# Some provisioners tear_down targets that were created as a batch job.
Expand Down

0 comments on commit 466b237

Please sign in to comment.