diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-09-19 04:59:14 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-09-19 04:59:14 +0000 |
| commit | 613781258282a3928ca9dfead457d73303636241 (patch) | |
| tree | e237d1482f339c5ab0921a3269abe16f6d54c8fc | |
| parent | 533a0229e494d67891d8e52d54bf537635cc80de (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-x | bin/puppetca | 4 |
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 |
