lib/chef_metal/action_handler.rb in chef-metal-0.14 vs lib/chef_metal/action_handler.rb in chef-metal-0.14.1

- old
+ new

@@ -40,12 +40,15 @@ # This should perform the actual action (e.g., converge) if there is an # action that needs to be done. def perform_action(description) if should_perform_actions - yield + result = yield + else + result = nil end performed_action(description) + result end # Open a stream which can be printed to and closed def open_stream(name) if block_given?