summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdrien Thebo <git@somethingsinistral.net>2013-09-18 21:56:16 -0700
committerAdrien Thebo <git@somethingsinistral.net>2013-09-18 21:56:16 -0700
commitd60d872c1ab676298824dad863237fa390e1ddd6 (patch)
treec790e7bb857c819b4c2082a699fadd5945198186 /lib
parent7ccf8cf09bb9dcdb59e1b2184a1f595dfa4a4340 (diff)
parent63811b9d599bdc23ae9c69189f7940013fcae87a (diff)
downloadpuppet-stdlib-d60d872c1ab676298824dad863237fa390e1ddd6.tar.gz
puppet-stdlib-d60d872c1ab676298824dad863237fa390e1ddd6.tar.bz2
Merge branch 'pull-180'
This closes GH-180
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/parser/functions/validate_cmd.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/puppet/parser/functions/validate_cmd.rb b/lib/puppet/parser/functions/validate_cmd.rb
index 344a80c..2ebe91c 100644
--- a/lib/puppet/parser/functions/validate_cmd.rb
+++ b/lib/puppet/parser/functions/validate_cmd.rb
@@ -32,6 +32,7 @@ module Puppet::Parser::Functions
tmpfile = Tempfile.new("validate_cmd")
begin
tmpfile.write(content)
+ tmpfile.close
if Puppet::Util::Execution.respond_to?('execute')
Puppet::Util::Execution.execute("#{checkscript} #{tmpfile.path}")
else