diff options
author | Nick Lewis <nick@puppetlabs.com> | 2010-07-12 16:23:35 -0700 |
---|---|---|
committer | Markus Roberts <Markus@reality.com> | 2010-07-13 23:09:36 -0700 |
commit | 793d7b7cfd2bb1d61a0c0686dc1f8533c8ab13d9 (patch) | |
tree | 105066086bb1b74416e060d887d90509f088492f /lib/puppet/defaults.rb | |
parent | 2edf7fe968ac3d8af9865f65100940747c1fa894 (diff) | |
download | puppet-793d7b7cfd2bb1d61a0c0686dc1f8533c8ab13d9.tar.gz puppet-793d7b7cfd2bb1d61a0c0686dc1f8533c8ab13d9.tar.xz puppet-793d7b7cfd2bb1d61a0c0686dc1f8533c8ab13d9.zip |
[#4213] -o option for setting onetime now works properly
When onetime was moved to global defaults, it broke the option handler
using it in agent to manage waitforcert length. Additionally, it
caused --onetime and -o to behave differently. This patch removes
the ordinary option handler defined in agent and moves the logic
for waitforcert to the one location it's used.
Diffstat (limited to 'lib/puppet/defaults.rb')
-rw-r--r-- | lib/puppet/defaults.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/puppet/defaults.rb b/lib/puppet/defaults.rb index 0af40f2cb..84e2d93fc 100644 --- a/lib/puppet/defaults.rb +++ b/lib/puppet/defaults.rb @@ -54,10 +54,11 @@ module Puppet "Whether Puppet should manage the owner, group, and mode of files it uses internally" ], - :onetime => [false, - "Run the configuration once, rather than as a long-running - daemon. This is useful for interactively running puppetd." - ], + :onetime => {:default => false, + :desc => "Run the configuration once, rather than as a long-running + daemon. This is useful for interactively running puppetd.", + :short => 'o' + }, :path => {:default => "none", :desc => "The shell search path. Defaults to whatever is inherited from the parent process.", |