diff --git a/lib/bundles/inspec-compliance/cli.rb b/lib/bundles/inspec-compliance/cli.rb index c752f86d4..b34aa9ca9 100644 --- a/lib/bundles/inspec-compliance/cli.rb +++ b/lib/bundles/inspec-compliance/cli.rb @@ -355,7 +355,7 @@ module Compliance config['user'] = user config['insecure'] = insecure config['server_type'] = 'compliance' - config['version'] = Compliance::API.version(url, insecure) + config['version'] = Compliance::API.version(config) if !verify config.store