From 253376a2add0e1d5d7828da5dd94eae18938f38b Mon Sep 17 00:00:00 2001 From: luke Date: Tue, 19 Dec 2006 22:46:01 +0000 Subject: 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 --- bin/puppetca | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit