summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet')
-rwxr-xr-xlib/puppet/type/exec.rb11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/puppet/type/exec.rb b/lib/puppet/type/exec.rb
index 2ae401cca..e07ad90b5 100755
--- a/lib/puppet/type/exec.rb
+++ b/lib/puppet/type/exec.rb
@@ -49,7 +49,15 @@ module Puppet
self.parent[:command]
)
end
- self.is = nil
+
+ if self.parent[:refreshonly]
+ # if refreshonly is enabled, then set things so we
+ # won't sync
+ self.is = self.should
+ else
+ # else, just set it to something we know it won't be
+ self.is = nil
+ end
end
def sync
@@ -115,6 +123,7 @@ module Puppet
:path,
:user,
:cwd,
+ :refreshonly,
:command
]