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
When checking for only variables in strings, there is a case where strings are not recognized even though they should be.
Only variables in strings formatted as follows are recognized correctly: "${variable}".
Unfortunately, however, the following format is not recognized: "${ variable }". Detail on the spaces after and before the curly bracket.
The above format should also trigger the warning messages, even if Puppet interprets this notation correctly in manifests it should not be used as “best practice”.
Steps to Reproduce
Using "${ variable }" inside a Puppet manifest.
Environment
Version: Latest from RubyGems (3.0.1)
Platform: Ubuntu 22.04
Additional Context
No additional information provided. Unfortunately, I am not that familiar with Ruby to implement a fix for this by myself.
The text was updated successfully, but these errors were encountered:
Describe the Bug
When checking for only variables in strings, there is a case where strings are not recognized even though they should be.
Only variables in strings formatted as follows are recognized correctly:
"${variable}"
.Unfortunately, however, the following format is not recognized:
"${ variable }"
. Detail on the spaces after and before the curly bracket.It is located inside the check
check_strings/only_variable_string.rb
.Expected Behavior
The above format should also trigger the warning messages, even if Puppet interprets this notation correctly in manifests it should not be used as “best practice”.
Steps to Reproduce
Using
"${ variable }"
inside a Puppet manifest.Environment
Additional Context
No additional information provided. Unfortunately, I am not that familiar with Ruby to implement a fix for this by myself.
The text was updated successfully, but these errors were encountered: