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 8a8855b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/puppet_litmus/rake_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def tear_down_nodes(targets, inventory_hash)
results = {}
targets.each do |node_name|
next if node_name == 'litmus_localhost'
# next if provisioner fact empty/not set (GH-421)
next if 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 8a8855b

Please sign in to comment.