From 2cc31264fda94a6db318de2b31fc955c03fde028 Mon Sep 17 00:00:00 2001 From: rhoml Date: Mon, 24 Feb 2014 23:32:59 +0100 Subject: [PATCH] Fix variables syntax --- manifests/handler.pp | 2 +- manifests/plugin.pp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/handler.pp b/manifests/handler.pp index 74a17afd8a..ac4dcfd10e 100644 --- a/manifests/handler.pp +++ b/manifests/handler.pp @@ -101,7 +101,7 @@ if $source { - $filename = inline_template("<%= scope.lookupvar('source').split('/').last %>") + $filename = inline_template('<%= scope.lookupvar(\'source\').split(\'/\').last %>') $command_real = "${install_path}/${filename}" $file_ensure = $ensure ? { diff --git a/manifests/plugin.pp b/manifests/plugin.pp index bd798ef2b9..d785a4b668 100644 --- a/manifests/plugin.pp +++ b/manifests/plugin.pp @@ -47,7 +47,7 @@ case $type { 'file': { - $filename = inline_template("<%= scope.lookupvar('name').split('/').last %>") + $filename = inline_template('<%= scope.lookupvar(\'name\').split(\'/\').last %>') file { "${install_path}/${filename}": ensure => file,