diff --git a/providers/pool.rb b/providers/pool.rb index 36c641c2..fd382758 100644 --- a/providers/pool.rb +++ b/providers/pool.rb @@ -46,7 +46,6 @@ def whyrun_supported? command cmd end configure - new_resource.updated_by_last_action(true) Chef::Log.info('App pool created') else Chef::Log.debug("#{new_resource} pool already exists - nothing to do") @@ -54,7 +53,7 @@ def whyrun_supported? end action :config do - new_resource.updated_by_last_action(true) if configure + configure end action :delete do @@ -62,7 +61,6 @@ def whyrun_supported? execute "Deleting the IIS pool #{new_resource.pool_name}" do command "#{appcmd(node)} delete apppool \"#{site_identifier}\"" end - new_resource.updated_by_last_action(true) Chef::Log.info("#{new_resource} deleted") else Chef::Log.debug("#{new_resource} pool does not exist - nothing to do") @@ -74,7 +72,6 @@ def whyrun_supported? execute "Starting IIS pool #{site_identifier}" do command "#{appcmd(node)} start apppool \"#{site_identifier}\"" end - new_resource.updated_by_last_action(true) Chef::Log.info("#{new_resource} started") else Chef::Log.debug("#{new_resource} already running - nothing to do") @@ -86,7 +83,6 @@ def whyrun_supported? execute "Stopping the IIS pool #{new_resource.pool_name}" do command "#{appcmd(node)} stop apppool \"#{site_identifier}\"" end - new_resource.updated_by_last_action(true) Chef::Log.info("#{new_resource} stopped") else Chef::Log.debug("#{new_resource} already stopped - nothing to do") @@ -101,7 +97,6 @@ def whyrun_supported? execute "Starting the IIS pool #{site_identifier}" do command "#{appcmd(node)} start apppool \"#{site_identifier}\"" end - new_resource.updated_by_last_action(true) Chef::Log.info("#{new_resource} restarted") end @@ -109,7 +104,6 @@ def whyrun_supported? execute "Recycling the IIS pool #{new_resource.pool_name}" do command "#{appcmd(node)} recycle APPPOOL \"#{site_identifier}\"" end - new_resource.updated_by_last_action(true) Chef::Log.info("#{new_resource} recycled") end