diff --git a/providers/clone.rb b/providers/clone.rb index 5b5fc73..1df39fc 100644 --- a/providers/clone.rb +++ b/providers/clone.rb @@ -37,7 +37,7 @@ action :create do cmd_.environment['HOME'] = ENV.fetch('HOME', '/root') cmd_.run_command begin - cmd.error! + cmd_.error! new_resource.updated_by_last_action(true) Chef::Log.info "Successfully configured clone '#{name}'." rescue diff --git a/providers/colocation.rb b/providers/colocation.rb index 674e7e5..91e3a57 100644 --- a/providers/colocation.rb +++ b/providers/colocation.rb @@ -43,7 +43,7 @@ action :create do cmd_.environment['HOME'] = ENV.fetch('HOME', '/root') cmd_.run_command begin - cmd.error! + cmd_.error! new_resource.updated_by_last_action(true) Chef::Log.info "Successfully configured colocation '#{name}'." rescue diff --git a/providers/location.rb b/providers/location.rb index 2b068ec..319fa8d 100644 --- a/providers/location.rb +++ b/providers/location.rb @@ -32,7 +32,7 @@ action :create do cmd_.environment['HOME'] = ENV.fetch('HOME', '/root') cmd_.run_command begin - cmd.error! + cmd_.error! new_resource.updated_by_last_action(true) Chef::Log.info "Successfully configured location '#{name}'." rescue diff --git a/providers/ms.rb b/providers/ms.rb index 978cfe3..cfb2803 100644 --- a/providers/ms.rb +++ b/providers/ms.rb @@ -37,7 +37,7 @@ action :create do cmd_.environment['HOME'] = ENV.fetch('HOME', '/root') cmd_.run_command begin - cmd.error! + cmd_.error! new_resource.updated_by_last_action(true) Chef::Log.info "Successfully configured ms '#{name}'." rescue diff --git a/providers/node.rb b/providers/node.rb index 6033d84..de06717 100644 --- a/providers/node.rb +++ b/providers/node.rb @@ -29,7 +29,7 @@ action :add do cmd_.environment['HOME'] = ENV.fetch('HOME', '/root') cmd_.run_command begin - cmd.error! + cmd_.error! new_resource.updated_by_last_action(true) Chef::Log.info "Successfully configured node '#{name}'." rescue diff --git a/providers/order.rb b/providers/order.rb index b564cc0..5a1ca6f 100644 --- a/providers/order.rb +++ b/providers/order.rb @@ -34,7 +34,7 @@ action :create do cmd_.environment['HOME'] = ENV.fetch('HOME', '/root') cmd_.run_command begin - cmd.error! + cmd_.error! new_resource.updated_by_last_action(true) Chef::Log.info "Successfully configured order '#{name}'." rescue diff --git a/providers/primitive.rb b/providers/primitive.rb index be2416a..a4d61de 100644 --- a/providers/primitive.rb +++ b/providers/primitive.rb @@ -59,7 +59,7 @@ action :create do cmd_.environment['HOME'] = ENV.fetch('HOME', '/root') cmd_.run_command begin - cmd.error! + cmd_.error! new_resource.updated_by_last_action(true) Chef::Log.info "Successfully configured primitive '#{name}'." rescue