Skip to content

Commit

Permalink
Merge pull request #283 from chef-cookbooks/bug-recycle_at_time
Browse files Browse the repository at this point in the history
iis_pool is not idempotent when recycle_at_time is specified and is n…
  • Loading branch information
EasyAsABC123 committed Jun 27, 2016
2 parents 9e38d63 + eed96d8 commit a505637
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@ vendor/
.vagrant/
.vagrant.d/
.kitchen/

#github
.bundle/
.github/
bin/
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

This file is used to list changes made in each version of the iis cookbook.

## v4.1.9 (2016-06-26)

- Resolves [Add deprecation warnings for iis_config in 4.2](https://github.com/chef-cookbooks/iis/issues/284)
- Resolves [iis_pool is not idempotent when recycle_at_time is specified and is not changed](https://github.com/chef-cookbooks/iis/issues/279)

## v4.1.8 (2016-04-15)

- Fixed smp_processor_affinity_mask throwing deprecation warnings
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
license 'Apache 2.0'
description 'Installs/Configures Microsoft Internet Information Services'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '4.1.8'
version '4.1.9'
supports 'windows'
depends 'windows', '>= 1.34.6'
source_url 'https://github.com/chef-cookbooks/iis' if respond_to?(:source_url)
Expand Down
4 changes: 4 additions & 0 deletions providers/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@

# :config deprecated, use :set instead
action :config do
Chef::Log.warn <<-eos
Use of action `:config` in resource `iis_config` is now deprecated and will be removed in a future release (v4.2.0).
`:set` should be used instead.
eos
new_resource.updated_by_last_action(true) if config
end

Expand Down
2 changes: 1 addition & 1 deletion providers/pool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def configure
configure_application_pool(is_new_ping_response_time, "processModel.pingResponseTime:#{new_resource.ping_response_time}")

node_array = XPath.match(doc.root, 'APPPOOL/add/recycling/periodicRestart/schedule/add')
should_clear_apppool_schedules = ((new_resource.recycle_at_time && is_new_recycle_at_time) || !node_array.empty?) || (new_resource.recycle_schedule_clear && !node_array.empty?)
should_clear_apppool_schedules = ((new_resource.recycle_at_time && is_new_recycle_at_time) && !node_array.empty?) || (new_resource.recycle_schedule_clear && !node_array.empty?)

# recycling items
## Special case this collection removal for now.
Expand Down

0 comments on commit a505637

Please sign in to comment.