summaryrefslogtreecommitdiffstats
path: root/bin/puppetd
diff options
context:
space:
mode:
authorlutter <lutter@980ebf18-57e1-0310-9a29-db15c13687c0>2007-03-19 22:18:35 +0000
committerlutter <lutter@980ebf18-57e1-0310-9a29-db15c13687c0>2007-03-19 22:18:35 +0000
commit145c39c79dfb6f235579f93ff85c54930d00920f (patch)
treee772efbdde823acc612ce3135606cbc6a443b9b9 /bin/puppetd
parent41e1285553870f0b425b88a6209fab8733b421b2 (diff)
downloadpuppet-145c39c79dfb6f235579f93ff85c54930d00920f.tar.gz
puppet-145c39c79dfb6f235579f93ff85c54930d00920f.tar.xz
puppet-145c39c79dfb6f235579f93ff85c54930d00920f.zip
Don't clobber an explicitly given waitforcert
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2331 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'bin/puppetd')
-rwxr-xr-xbin/puppetd4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/puppetd b/bin/puppetd
index be8af2287..8124a301d 100755
--- a/bin/puppetd
+++ b/bin/puppetd
@@ -195,6 +195,7 @@ options = {
}
begin
+ explicit_waitforcert = false
result.each { |opt,arg|
case opt
# First check to see if the argument is a valid configuration parameter;
@@ -243,7 +244,7 @@ begin
options[:client] = false
when "--onetime"
options[:onetime] = true
- options[:waitforcert] = 0
+ options[:waitforcert] = 0 unless explicit_waitforcert
when "--port"
args[:Port] = arg
when "--logdest"
@@ -255,6 +256,7 @@ begin
end
when "--waitforcert"
options[:waitforcert] = arg.to_i
+ explicit_waitforcert = true
else
Puppet.config.handlearg(opt, arg)
end