From 624ccbd22c845a042e8128d44c5299c0732e81de Mon Sep 17 00:00:00 2001 From: Travis Fields Date: Fri, 24 Oct 2014 16:35:34 -0700 Subject: [PATCH] add require 'tempfile' to resolve a previously autorequired resource --- lib/puppet/parser/functions/validate_augeas.rb | 2 ++ lib/puppet/parser/functions/validate_cmd.rb | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/puppet/parser/functions/validate_augeas.rb b/lib/puppet/parser/functions/validate_augeas.rb index 154d66091..4ea4fe070 100644 --- a/lib/puppet/parser/functions/validate_augeas.rb +++ b/lib/puppet/parser/functions/validate_augeas.rb @@ -1,3 +1,5 @@ +require 'tempfile' + module Puppet::Parser::Functions newfunction(:validate_augeas, :doc => <<-'ENDHEREDOC') do |args| Perform validation of a string using an Augeas lens diff --git a/lib/puppet/parser/functions/validate_cmd.rb b/lib/puppet/parser/functions/validate_cmd.rb index 2ebe91cf7..652aa5584 100644 --- a/lib/puppet/parser/functions/validate_cmd.rb +++ b/lib/puppet/parser/functions/validate_cmd.rb @@ -1,4 +1,5 @@ require 'puppet/util/execution' +require 'tempfile' module Puppet::Parser::Functions newfunction(:validate_cmd, :doc => <<-'ENDHEREDOC') do |args|