changeset 20:393acb5f672d puppet-3.6

Fix bad practice of using variable incorrectly, which raises a warning in 3.6
author IBBoard <dev@ibboard.co.uk>
date Sun, 08 Mar 2015 20:48:03 +0000
parents e3aeb8761950
children 7411baa55c01
files modules/python/manifests/venv/isolate.pp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/python/manifests/venv/isolate.pp	Sun Mar 08 20:47:27 2015 +0000
+++ b/modules/python/manifests/venv/isolate.pp	Sun Mar 08 20:48:03 2015 +0000
@@ -8,7 +8,7 @@
 
   if $ensure == 'present' {
     # Parent directory of root directory. /var/www for /var/www/blog
-    $root_parent = inline_template("<%= root.match(%r!(.+)/.+!)[1] %>")
+    $root_parent = inline_template("<%= @root.match(%r!(.+)/.+!)[1] %>")
 
     if !defined(File[$root_parent]) {
       file { $root_parent: