puppetlabs / puppetserver-ca-cli

A simple Ruby CLI tool to interact with the Puppet Server's included Certificate Authority
Apache License 2.0
3 stars 24 forks source link

(SERVER-2797) Add failure exit code when `puppetserver ca list` hits errors. #99

Closed mwaggett closed 2 years ago

mwaggett commented 2 years ago

When running a puppetserver ca command on a non-CA server, the command exits with a 0 = ok, when the command has obviously failed. The failure is easily detected by a human, but less so for a computer.

This seeks to distinguish "failed at looking up" from "found no certificates" and exit accordingly.