diff --git a/providers/tentacle.rb b/providers/tentacle.rb index 92799af..d847fb9 100644 --- a/providers/tentacle.rb +++ b/providers/tentacle.rb @@ -149,6 +149,7 @@ roles = new_resource.roles environment = new_resource.environment config_path = new_resource.config_path + service_name = service_name(instance) verify_server(server) verify_api_key(api_key) @@ -168,7 +169,11 @@ notifies :restart, "windows_service[#{service_name}]", :delayed end - new_resource.updated_by_last_action(actions_updated?([register_instance])) + service = windows_service service_name do + action :nothing + end + + new_resource.updated_by_last_action(actions_updated?([register_instance, service])) end action :remove do