summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/puppet/type/exec.rb4
1 files changed, 3 insertions, 1 deletions
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.