mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
Refactor after revisions requested from @chris-rock
Signed-off-by: Montague, Brent <brent@bmontague.com>
This commit is contained in:
parent
caa554b467
commit
463f3ff09f
2 changed files with 1 additions and 3 deletions
|
@ -147,9 +147,7 @@ Please login using `inspec compliance login https://compliance.test --user admin
|
|||
|
||||
def self.get_token(config)
|
||||
return config['token'] unless config['refresh_token']
|
||||
|
||||
_success, _msg, token = get_token_via_refresh_token(config['server'], config['refresh_token'], config['insecure'])
|
||||
|
||||
token
|
||||
end
|
||||
|
||||
|
|
|
@ -343,7 +343,7 @@ module Compliance
|
|||
success = true
|
||||
msg = 'API refresh token stored'
|
||||
else
|
||||
success, msg = Compliance::API.get_token_via_refresh_token(url, refresh_token, insecure)
|
||||
success, msg, _access_token= Compliance::API.get_token_via_refresh_token(url, refresh_token, insecure)
|
||||
if success
|
||||
config.store
|
||||
msg = 'API access token verified'
|
||||
|
|
Loading…
Reference in a new issue