From 07bb5d2d94db222dca5860eb29c184e8970f36f4 Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Fri, 24 Jul 2015 11:50:03 -0700 Subject: [PATCH] check for eyaml_version being undef Thanks to https://github.com/ktreese for reporting this. --- manifests/eyaml.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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