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

(HC-33) Support adding element when array does not exist yet #25

Conversation

camlow325
Copy link
Contributor

This commit changes the behavior for applying an array_element when
the array does not exist in the target file yet from displaying an error
to creating the array and populating it with the element.

This commit changes the behavior for applying an `array_element` when
the array does not exist in the target file yet from displaying an error
to creating the array and populating it with the element.
"foo" : "foovalue3"

}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of the whitespace behavior here seems really bizarre to me, but I assume that's controlled by logic in the hocon gem - nothing that the Puppet module can do to avoid it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@camlow325 That's correct, the whitespace behavior is controlled entirely by the hocon gem. It definitely seems weird to me that there seem to be some extra newlines being generated, so maybe there are some improvements that need to be made there.

@camlow325
Copy link
Contributor Author

Ping @nwolfe and @fpringvaldsen for review.

@MSLilah
Copy link
Contributor

MSLilah commented Oct 30, 2015

👍

1 similar comment
@nwolfe
Copy link
Contributor

nwolfe commented Oct 31, 2015

👍

nwolfe added a commit that referenced this pull request Oct 31, 2015
…ent-when-not-already-in-target

(HC-33) Support adding element when array does not exist yet
@nwolfe nwolfe merged commit d06c364 into puppetlabs:master Oct 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants