Skip to content

Commit

Permalink
Remove re-definition of ExoScale#get_token
Browse files Browse the repository at this point in the history
  • Loading branch information
BanzaiMan committed Aug 2, 2016
1 parent f4428c1 commit 85c929e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/dpl/provider/exoscale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,6 @@ def get_token
return JSON.parse response.body
end

def get_token
request = Net::HTTP::Post.new '/token/'
request.basic_auth options[:email], options[:password]
response = @http.request(request)
error('authorization failed') if response.code != '200'
return JSON.parse response.body
end

def headers_with_token(options = {})
@token = get_token if options[:new_token] || @token.nil?
return {
Expand Down

0 comments on commit 85c929e

Please sign in to comment.