From dd71a514b6970d3b4f8167a4f29849b1b1fc631d Mon Sep 17 00:00:00 2001 From: luke Date: Wed, 7 Feb 2007 17:29:37 +0000 Subject: Changing exec so that the checks apply to whether an exec is refreshed. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2172 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/type/exec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/puppet/type/exec.rb b/lib/puppet/type/exec.rb index 55b3eb271..4a5bbd08f 100755 --- a/lib/puppet/type/exec.rb +++ b/lib/puppet/type/exec.rb @@ -486,7 +486,9 @@ module Puppet # this might be a very, very bad idea... def refresh - self.property(:returns).sync + if self.check + self.property(:returns).sync + end end # Run a command. -- cgit