1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[openstack] Ensure String Username for Authentication

When username is composed of only integers, openstack raises a
ProgrammingError when trying to authenticate user.

Signed-off-by: Nelvin Driz <nelvindriz@live.com>
This commit is contained in:
Nelvin Driz 2012-10-18 13:33:32 +08:00
parent ccb633f899
commit ad2e1c4027

View file

@ -95,7 +95,7 @@ module Fog
req_body = {
'auth' => {
'passwordCredentials' => {
'username' => @openstack_username,
'username' => @openstack_username.to_s,
'password' => @openstack_api_key.to_s
}
}