Method: Chef::Client#converge_and_save

Defined in:
lib/chef/client.rb

#converge_and_save(run_context) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Converge the node via and then save it if successful.

If converge() raises it is important that save_updated_node is bypassed.

Parameters:

Raises:

  • Any converge or node save exception



872
873
874
875
# File 'lib/chef/client.rb', line 872

def converge_and_save(run_context)
  converge(run_context)
  save_updated_node
end