diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-19 22:46:01 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-19 22:46:01 +0000 |
commit | 253376a2add0e1d5d7828da5dd94eae18938f38b (patch) | |
tree | 22ccdf01303b120b8ddf26f1e81a14e403ebba08 /bin | |
parent | 36e8d65bbdf236203741d3a3b0d98a1eb51a75a9 (diff) | |
download | puppet-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-x | bin/puppetca | 6 |
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 |