mirror of
https://github.com/inspec/inspec
synced 2024-11-22 20:53:11 +00:00
Merge pull request #6611 from inspec/nm/exit-code-change-on-no-license
Exit code changes when chef license key not found and set for inspec
This commit is contained in:
commit
c948e30de5
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ module Inspec
|
|||
end
|
||||
rescue ChefLicensing::LicenseKeyFetcher::LicenseKeyNotFetchedError
|
||||
Inspec::Log.error "#{Inspec::Dist::PRODUCT_NAME} cannot execute without valid licenses."
|
||||
Inspec::UI.new.exit(:usage_error)
|
||||
Inspec::UI.new.exit(:license_not_set)
|
||||
rescue ChefLicensing::Error => e
|
||||
Inspec::Log.error e.message
|
||||
Inspec::UI.new.exit(:usage_error)
|
||||
|
|
Loading…
Reference in a new issue