Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iis_config errors on collection properties #425

Open
habelson opened this issue May 30, 2018 · 0 comments
Open

iis_config errors on collection properties #425

habelson opened this issue May 30, 2018 · 0 comments

Comments

@habelson
Copy link

Cookbook version

6.8.0

Chef-client version

14.0.202

Platform Details

Windows Server 2016

Scenario:

When setting a property that that can have more than one of the same section, iis_config succeeds on first run, but fails on subsequent runs.

Steps to Reproduce:

iis_config '/section:applicationPools -+"applicationPoolDefaults.recycling.periodicRestart.schedule.[value=\'01:00:00\']" /commit:apphost' do
  action :set
end

Expected Result:

chef-client run succeeds on subsequent runs

Actual Result:

chef-client succeeds on first run, but fails on subsequent runs:

ERROR ( message:New add object missing required attributes. Cannot add duplicate collection entry of type 'add' with unique key attribute 'value' set to '01:00:00' . )

###Comments:
I'm aware this issue is related to #276 and that there is current work in progress to replace this feature with something better. I just wanted to make you aware of this edge case, in case it also comes up in the new code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants