1
0
Fork 0
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:
Oguz Bilgic 2012-12-05 15:45:39 -08:00
parent bcfb5fe1df
commit 45f7b4b58c

View file

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