mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
Merge pull request #4650 from inspec/cw/fix-compliance-exec
Fix config reference in `compliance exec`
This commit is contained in:
commit
7442955ed6
1 changed files with 3 additions and 3 deletions
|
@ -72,10 +72,10 @@ module InspecPlugins
|
|||
desc "exec PROFILE", "executes a #{COMPLIANCE_PRODUCT_NAME} profile"
|
||||
exec_options
|
||||
def exec(*tests)
|
||||
config = InspecPlugins::Compliance::Configuration.new
|
||||
return unless loggedin(config)
|
||||
compliance_config = InspecPlugins::Compliance::Configuration.new
|
||||
return unless loggedin(compliance_config)
|
||||
|
||||
o = opts(:exec).dup
|
||||
o = config # o is an Inspec::Config object, provided by a helper method from Inspec::BaseCLI
|
||||
diagnose(o)
|
||||
configure_logger(o)
|
||||
|
||||
|
|
Loading…
Reference in a new issue