lib/beaker/network_manager.rb in beaker-1.4.1 vs lib/beaker/network_manager.rb in beaker-1.5.0

- old
+ new

@@ -62,19 +62,16 @@ @hosts = @hosts.flatten @hosts end def cleanup - #only cleanup if we aren't preserving hosts #shut down connections @hosts.each {|host| host.close } - if not @options[:preserve_hosts] - if @provisioned_set - @provisioned_set.each_key do |type| - if @provisioned_set[type] - @provisioned_set[type].cleanup - end + if @provisioned_set + @provisioned_set.each_key do |type| + if @provisioned_set[type] + @provisioned_set[type].cleanup end end end end