mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[xenserver] Fix Fog::XenServer::Connection.authenticate
Xenserver expects string type for both password and username. Be sure that they are string.
This commit is contained in:
parent
bcfb5fe1df
commit
45f7b4b58c
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ module Fog
|
|||
end
|
||||
|
||||
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/
|
||||
@credentials = response["Value"]
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue