Refactor after revisions requested from @chris-rock

Signed-off-by: Montague, Brent <brent@bmontague.com>
This commit is contained in:
Montague, Brent 2017-01-18 08:14:19 -05:00
parent caa554b467
commit 463f3ff09f
2 changed files with 1 additions and 3 deletions

View file

@ -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

View file

@ -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'