You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a function that is used for ExecutionResult sets and checks them... and I am getting unquoted node name found b/c the function is written in puppet.
Exepectation is to either ignore these in a function or fix the issue with regards to this in a function.
functions/process_result.pp:57:38: unquoted node name found
// offending declaration is reported as the `.ok`
if ($abort_on_errors and !$results.ok) {
alert(@(EOT))
Aborting plan due to task failure
| EOT
pe::exit(1)
}```
The text was updated successfully, but these errors were encountered:
I'm not able to reproduce this problem with the code you pasted (neither on HEAD nor with one of the recent releases).
$ cat gh/manifests/issue904.pp
## gh issue 904
class gh::issue904 {
if ($abort_on_errors and !$results.ok) {
alert(@(EOT))
Aborting plan due to task failure
| EOT
pe::exit(1)
}
}
$ puppet-lint gh/manifests/issue904.pp
WARNING: top-scope variable being used without an explicit namespace on line 3
WARNING: top-scope variable being used without an explicit namespace on line 3
@cyberious could you maybe provide a more complete example that shows the failure mode? Also, what version of puppet-lint do you use?
I have a function that is used for ExecutionResult sets and checks them... and I am getting unquoted node name found b/c the function is written in puppet.
Exepectation is to either ignore these in a function or fix the issue with regards to this in a function.
functions/process_result.pp:57:38: unquoted node name found
The text was updated successfully, but these errors were encountered: