fix lib/puppet/parser/functions/fqdn_rand_string.rb:21: syntax error#1029
Conversation
pulecp
commented
Jun 14, 2019
stdlib/lib/puppet/parser/functions/fqdn_rand_string.rb:21: syntax error, unexpected null
fqdn_rand_string(10, 'ABCDEF!@#$%^')
^
Signed-off-by: Pavel Pulec <kayn@inuits.eu>
|
centos 7 |
|
Hi @pulecp how were you triggering this error ? it was unclear if it was a linting check or it was hit using puppet code. Should we add a test for it. Almost forgot to say, many thanks for the PR !!! Great work 👍 |
|
Hey @tphoney. I'm using letsencrypt module from voxpupuli which is using The issue occurs during common puppet run: |
|
Wow thanks for the info ! merging to master. Great work ! |
cederlys
left a comment
There was a problem hiding this comment.
I'm late to the show, but wouldn't a better fix have been to use -'DOC' instead of -DOC, so that interpolation and escaping is disabled in the heredoc? See https://ruby-doc.org/core-2.5.0/doc/syntax/literals_rdoc.html#label-Here+Documents.