summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-09-19 04:59:14 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-09-19 04:59:14 +0000
commit613781258282a3928ca9dfead457d73303636241 (patch)
treee237d1482f339c5ab0921a3269abe16f6d54c8fc
parent533a0229e494d67891d8e52d54bf537635cc80de (diff)
Fixing #280; added a warning and exiting if no hosts are specified to clean
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1624 980ebf18-57e1-0310-9a29-db15c13687c0
-rwxr-xr-xbin/puppetca4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/puppetca b/bin/puppetca
index da9423c40..4bde92a11 100755
--- a/bin/puppetca
+++ b/bin/puppetca
@@ -188,6 +188,10 @@ case mode
when :list
puts hosts.join("\n")
when :clean
+ if hosts.empty?
+ $stderr.puts "You must specify one or more hosts to clean"
+ exit(24)
+ end
hosts.each do |host|
ca.clean(host)
end