Katello / katello-client-bootstrap

Bootstrap Script for migrating systems to Foreman & Katello
GNU General Public License v2.0
52 stars 63 forks source link

[RFE] Standardize Exit codes #247

Open sideangleside opened 6 years ago

sideangleside commented 6 years ago

Today we exit with non-zero exit code in the event of an error. Should we consider being more granular with our exit codes:

example, return 2 for 'system already registered' and 3 for 'unsupported puppet version'

sideangleside commented 6 years ago

@evgeni thoughts?

evgeni commented 6 years ago

I think this is a good idea. :+1:

I wonder if we should follow https://github.com/theforeman/hammer-cli/blob/master/lib/hammer_cli/exit_codes.rb (at least where we can)

gearboxscott commented 6 years ago

dilly dilly