Skip to content

Commit

Permalink
Fix variables syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
rhoml committed Feb 24, 2014
1 parent ecefc8a commit 2cc3126
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/handler.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? {
Expand Down
2 changes: 1 addition & 1 deletion manifests/plugin.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2cc3126

Please sign in to comment.