summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-12-19 22:46:01 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-12-19 22:46:01 +0000
commit253376a2add0e1d5d7828da5dd94eae18938f38b (patch)
tree22ccdf01303b120b8ddf26f1e81a14e403ebba08 /bin
parent36e8d65bbdf236203741d3a3b0d98a1eb51a75a9 (diff)
downloadpuppet-253376a2add0e1d5d7828da5dd94eae18938f38b.tar.gz
Fixing #385. Puppetca correctly exits with non-zero exit code if there are no certs to sign.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1955 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'bin')
-rwxr-xr-xbin/puppetca6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/puppetca b/bin/puppetca
index 91a83aaca..599ce58b4 100755
--- a/bin/puppetca
+++ b/bin/puppetca
@@ -173,7 +173,11 @@ else
hosts = ca.list
unless hosts.length > 0
puts "No certificates to sign"
- exit(0)
+ if ARGV.length > 0
+ exit(17)
+ else
+ exit(0)
+ end
end
end