mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
fix rubocop
This commit is contained in:
parent
4004dfbb3c
commit
71e1372b5e
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ module Compliance
|
|||
option :apipath, type: :string, default: '/api',
|
||||
desc: 'Set the path to the API, defaults to /api'
|
||||
def api_token(server)
|
||||
success, msg = Compliance::API.api_token(server, options['token'], options['verify'], options['user'], options['insecure'], options['apipath'])
|
||||
_, msg = Compliance::API.api_token(server, options['token'], options['verify'], options['user'], options['insecure'], options['apipath'])
|
||||
puts msg
|
||||
end
|
||||
|
||||
|
@ -31,7 +31,7 @@ module Compliance
|
|||
option :insecure, aliases: :k, type: :boolean,
|
||||
desc: 'Explicitly allows InSpec to perform "insecure" SSL connections and transfers'
|
||||
def token(server)
|
||||
success, msg = Compliance::API.access_token(server, options['token'], options['insecure'])
|
||||
_, msg = Compliance::API.access_token(server, options['token'], options['insecure'])
|
||||
puts msg
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue