summaryrefslogtreecommitdiffstats
path: root/lib/puppet/server
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-06-28 15:17:56 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-06-28 15:17:56 +0000
commitad1396d3d960b805d3f9510d105937b6854deb90 (patch)
tree45381379838abdd7a8753f5c5dc68713662d3b07 /lib/puppet/server
parent5be3c107fa1c81c26e379eb900f780589ccffa04 (diff)
downloadpuppet-ad1396d3d960b805d3f9510d105937b6854deb90.tar.gz
puppet-ad1396d3d960b805d3f9510d105937b6854deb90.tar.xz
puppet-ad1396d3d960b805d3f9510d105937b6854deb90.zip
Fixing backgrounding in puppetrun; I had the bit flipped between the client and the server, such that setting --foreground caused the clients to go into the background.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1325 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/server')
-rwxr-xr-xlib/puppet/server/runner.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/puppet/server/runner.rb b/lib/puppet/server/runner.rb
index d53b6c9b1..079197751 100755
--- a/lib/puppet/server/runner.rb
+++ b/lib/puppet/server/runner.rb
@@ -10,7 +10,7 @@ class Server
# Run the client configuration right now, optionally specifying
# tags and whether to ignore schedules
- def run(tags = [], ignoreschedules = false, bg = true, client = nil, clientip = nil)
+ def run(tags = [], ignoreschedules = false, fg = true, client = nil, clientip = nil)
# We need to retrieve the client
master = Puppet::Client::MasterClient.instance
@@ -45,13 +45,12 @@ class Server
end
# And then we need to tell it to run, with this extra info.
- # By default, stick it in a thread
- if bg
+ if fg
+ master.run(tags, ignoreschedules)
+ else
Puppet.newthread do
master.run(tags, ignoreschedules)
end
- else
- master.run(tags, ignoreschedules)
end
return "success"