Skip to content

Commit f67ca52

Browse files
committed
Prefer $facts[...] to $::...
1 parent 8bf8903 commit f67ca52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/server/root_password.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
}
4747

4848
# show_diff was added with puppet 3.0
49-
if versioncmp($::puppetversion, '3.0') >= 0 {
49+
if versioncmp($facts['puppetversion'], '3.0') >= 0 {
5050
File["${::root_home}/.my.cnf"] { show_diff => false }
5151
}
5252
if $mysql::server::create_root_user {

0 commit comments

Comments
 (0)