diff --git a/manifests/eyaml.pp b/manifests/eyaml.pp index 77d9552..a43bf54 100644 --- a/manifests/eyaml.pp +++ b/manifests/eyaml.pp @@ -35,7 +35,7 @@ # that here #XXX Pre-puppet 4.0.0 version (PUP-1073) #BUG This can't actually update the gem version if already installed. - if $eyaml_version =~ /^\d+\.\d+\.\d+$/ { + if $eyaml_version and $eyaml_version =~ /^\d+\.\d+\.\d+$/ { $gem_flag = "--version ${eyaml_version}" } else { $gem_flag = undef