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

attribute keys are missed for parsing #246

Closed
lbetz opened this issue Mar 2, 2017 · 7 comments
Closed

attribute keys are missed for parsing #246

lbetz opened this issue Mar 2, 2017 · 7 comments
Assignees
Labels
Milestone

Comments

@lbetz
Copy link
Contributor

lbetz commented Mar 2, 2017

The attribute keys are used to identify values that must not quoted thru the parsing mechanism. So we must not delete attribute with an undefined value.

Idea: move delete_undef_value from dedicated object definition to the main object resource and add a new parameter to the attributes function to get a list of unquoted words.

@lbetz lbetz added the bug label Mar 2, 2017
@lbetz lbetz self-assigned this Mar 2, 2017
@Reamer
Copy link
Contributor

Reamer commented Mar 2, 2017

Hi @lbetz,
If you remove delete_undef_value from dedicated object, we will get Warnings which I described in PR (#222). The icinga2::object is created in each dedicated object. I think "delete_undef_value" function is at last position before Puppetserver tries to save our icinga::object.
Just a thought maybe I am totally wrong.

@lbetz
Copy link
Contributor Author

lbetz commented Mar 2, 2017

Not remove, move to the object define resource ::icinga2::object.

@Reamer
Copy link
Contributor

Reamer commented Mar 2, 2017

I'll will take a look into puppetserver log with your patch.

@Reamer
Copy link
Contributor

Reamer commented Mar 2, 2017

I checked it in puppetserver log with your patch and all Warnings are now present again. Thats because you removed delete_undef_value from dedicated object.

@lbetz
Copy link
Contributor Author

lbetz commented Mar 2, 2017

OK, that's mean the problem is inside puppet and not between puppet and erb or ruby. Makes sense, puppet is implemented in ruby. Shit so we've to move delete_undef_values back to all objects and implement something to handover the attribute keys for parsing.

@lbetz
Copy link
Contributor Author

lbetz commented Mar 2, 2017

Please try the current commit to branch bug/attribute-keys-are-missed-for-parsing-246.

@lbetz lbetz closed this as completed in 1ab1c6f Mar 3, 2017
@Reamer
Copy link
Contributor

Reamer commented Mar 3, 2017

Tested with current master and Puppet 4 -> No warning

@bobapple bobapple added this to the v1.2.0 milestone Mar 8, 2017
@bobapple bobapple modified the milestones: v1.1.1, v1.2.0 Mar 13, 2017
n00by pushed a commit to n00by/puppet-icinga2 that referenced this issue Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants