Skip to content

Commit

Permalink
Merge pull request #56 from gdhbashton/bugfix/oldsource
Browse files Browse the repository at this point in the history
Little fix for #52
  • Loading branch information
gdhbashton committed Jan 18, 2016
2 parents ef908e5 + a6ae480 commit 4077bf4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion manifests/watch.pp
Expand Up @@ -25,7 +25,10 @@
$frag_name = "${name}.ctmpl"
$source_name = "${consul_template::config_dir}/${name}.ctmpl"
}
if $source != undef {
if $source -= undef {
$frag_name = $name
$source_name = $name
} else {
$frag_name = $source
$source_name = $source
}
Expand Down

0 comments on commit 4077bf4

Please sign in to comment.