Skip to content
This repository has been archived by the owner on Feb 27, 2018. It is now read-only.

Commit

Permalink
Lint: Double quote puppet variables
Browse files Browse the repository at this point in the history
Not really. It's a bash variable, but it looks like a Puppet
variable. We can still use double quotes and escape the $.

rodjek/puppet-lint#113

ERROR: single quoted string containing a variable found on line 3
  • Loading branch information
joshbetz committed Nov 6, 2014
1 parent 738b403 commit 4be8dc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion puppet/manifests/sections/database.pp
@@ -1,6 +1,6 @@

class database::settings {
$mysql_password = generate('/bin/sh', '-c', '< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-64};echo -n;')
$mysql_password = generate('/bin/sh', '-c', "< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c\${1:-64};echo -n;")
}

include database::settings
Expand Down

0 comments on commit 4be8dc1

Please sign in to comment.