mirror of
https://github.com/inspec/inspec
synced 2024-11-22 12:43:07 +00:00
CHEF-4010 make a clean exit for License list command (#6552)
* make a clean exit for License list command Signed-off-by: Sathish <sbabu@progress.com> * exit UI Signed-off-by: Sathish <sbabu@progress.com> --------- Signed-off-by: Sathish <sbabu@progress.com>
This commit is contained in:
parent
19086a0019
commit
5145fbb779
1 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,9 @@ module InspecPlugins::License
|
|||
desc "list", "List licenses (not applicable to local licensing service)"
|
||||
def list
|
||||
ChefLicensing.list_license_keys_info
|
||||
rescue ChefLicensing::Error => e
|
||||
Inspec::Log.error e.message
|
||||
Inspec::UI.new.exit(Inspec::UI::EXIT_LICENSE_NOT_SET)
|
||||
end
|
||||
|
||||
desc "add", "Add a new license (not applicable to local licensing service)"
|
||||
|
|
Loading…
Reference in a new issue