mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #1346 from oguzbilgic/xenserver-fix-1335
[xenserver] Fix Fog::XenServer::Connection.authenticate
This commit is contained in:
commit
712d44f01b
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ module Fog
|
||||||
end
|
end
|
||||||
|
|
||||||
def authenticate( username, password )
|
def authenticate( username, password )
|
||||||
response = @factory.call('session.login_with_password', username, password )
|
response = @factory.call('session.login_with_password', username.to_s, password.to_s)
|
||||||
raise Fog::XenServer::InvalidLogin.new unless response["Status"] =~ /Success/
|
raise Fog::XenServer::InvalidLogin.new unless response["Status"] =~ /Success/
|
||||||
@credentials = response["Value"]
|
@credentials = response["Value"]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue