mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
(maint) Update token status to not require password
This commit is contained in:
parent
2beb36f53e
commit
fa92da5c05
5 changed files with 9 additions and 8 deletions
|
|
@ -37,13 +37,13 @@ class Auth
|
|||
end
|
||||
end
|
||||
|
||||
def self.token_status(verbose, url, user, password, token)
|
||||
def self.token_status(verbose, url, token)
|
||||
if token.nil?
|
||||
STDERR.puts 'You did not provide a token'
|
||||
exit 1
|
||||
end
|
||||
|
||||
conn = Http.get_conn_with_auth(verbose, url, user, password)
|
||||
conn = Http.get_conn(verbose, url)
|
||||
|
||||
response = conn.get "/token/#{token}"
|
||||
res_body = JSON.parse(response.body)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
class Version
|
||||
@version = '0.2.13'
|
||||
@version = '0.2.14'
|
||||
|
||||
def self.get
|
||||
@version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue