-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
No obvious support for setting headers for inline service checks #542
Comments
It looks like using this form works So maybe this ticket should just be, add an example header config? It was tough to figure this out and we basically lucked into it |
I think just this issue is an OK way to document this. It is puppet, so a bare |
That's fine, I mean updating the readme because there is no mention of how
to handle non-scalar keys anywhere. An issue isn't really documentation
…On Wed, Jul 22, 2020, 7:06 PM Kyle Anderson ***@***.***> wrote:
I think just this issue is an OK way to document this.
It is puppet, so a bare Host in part of a hash... well I don't know what
it will do.
We know what in the end this needs to be a string in the file, so quoting
it explicitly is a good thing I think.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#542 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABLPYCCVPFZT6MJZ4SX5P3R45WITANCNFSM4PD3PBHA>
.
|
I don't think we need this kind of documentation on the README. This is just general puppet knowledge about putting quotes around strings right? https://puppet.com/docs/puppet/6.17/lang_data_hash.html#syntax
|
None of the other fields require quotes. It is a special circumstance that
only applies to this singular field
…On Wed, Jul 22, 2020, 8:08 PM Kyle Anderson ***@***.***> wrote:
I don't think we need this kind of documentation on the README. This is
just general puppet knowledge about putting quotes around strings right?
https://puppet.com/docs/puppet/6.17/lang_data_hash.html#syntax
Hash keys can be any data type, but generally, you should use only
strings. Put quotation marks around keys that are strings.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#542 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABLPYEGM5RHWTK7FYNCC3DR455RFANCNFSM4PD3PBHA>
.
|
Sorry, what I mean is that this particular field differs from the rest. I don't really see the harm in adding to the documentation for those of us who arent puppet experts. But if you think it's harmful then I guess that's your call Edit in my example the entire service definition is a hash, or so it appears to my eyes. That the nested sub hash differs from the hash it's nested within is what is confusing |
You are right, it isn't obvious which keys are arguments to a module and which keys are actually k/v strings in a hash. |
#543 Thank you! |
Resolved |
Code:
Error:
The expected JSON should be:
We are using an older version of puppet and only using 5.1.0 of the module, however looking at the master branch, it doesn't seem much has changed in this area.
If at all possible, back-porting the fix to the 5.x line would be greatly appreciated :)
The text was updated successfully, but these errors were encountered: