summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/functions/generate.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/parser/functions/generate.rb')
-rw-r--r--lib/puppet/parser/functions/generate.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/puppet/parser/functions/generate.rb b/lib/puppet/parser/functions/generate.rb
index cf46775ab..8430f03a6 100644
--- a/lib/puppet/parser/functions/generate.rb
+++ b/lib/puppet/parser/functions/generate.rb
@@ -11,9 +11,7 @@ Puppet::Parser::Functions::newfunction(:generate, :type => :rvalue,
generators, so all shell metacharacters are passed directly to
the generator.") do |args|
- unless args[0] =~ /^#{File::SEPARATOR}/
- raise Puppet::ParseError, "Generators must be fully qualified"
- end
+ raise Puppet::ParseError, "Generators must be fully qualified" unless args[0] =~ /^#{File::SEPARATOR}/
unless args[0] =~ /^[-#{File::SEPARATOR}\w.]+$/
raise Puppet::ParseError,