mirror of
https://github.com/inspec/inspec
synced 2024-11-26 22:50:36 +00:00
Provide logger to license-acceptance for help debugging in the future
Signed-off-by: tyler-ball <tball@chef.io>
This commit is contained in:
parent
50a8fd7370
commit
8425a50872
1 changed files with 5 additions and 1 deletions
|
@ -392,7 +392,11 @@ require 'license_acceptance/acceptor'
|
||||||
begin
|
begin
|
||||||
if (commands_exempt_from_license_check & ARGV.map(&:downcase)).empty? && # Did they use a non-exempt command?
|
if (commands_exempt_from_license_check & ARGV.map(&:downcase)).empty? && # Did they use a non-exempt command?
|
||||||
!ARGV.empty? # Did they supply at least one command?
|
!ARGV.empty? # Did they supply at least one command?
|
||||||
LicenseAcceptance::Acceptor.check_and_persist('inspec', Inspec::VERSION)
|
LicenseAcceptance::Acceptor.check_and_persist(
|
||||||
|
'inspec',
|
||||||
|
Inspec::VERSION,
|
||||||
|
logger: Inspec::Log,
|
||||||
|
)
|
||||||
end
|
end
|
||||||
rescue LicenseAcceptance::LicenseNotAcceptedError
|
rescue LicenseAcceptance::LicenseNotAcceptedError
|
||||||
Inspec::Log.error 'InSpec cannot execute without accepting the license'
|
Inspec::Log.error 'InSpec cannot execute without accepting the license'
|
||||||
|
|
Loading…
Reference in a new issue