You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem with the connection_params, if I specify values consisting only of numbers.
for-core call coerce_options for connection_params.
coerce_options suggests it takes a Hash and converts all the values to underlying Ruby types. So a username that is only numbers is converted to a number.
After the conversion, the string "12345" is converted to the number 12345. And after that, a request for authentication of OpenStack API is sent.
In this case, OpenStack API in the response body is an empty string.
Then an error occurs. (can't decode JSON; response.body = "")
Hello!
I have a problem with the connection_params, if I specify values consisting only of numbers.
for-core call
coerce_options
for connection_params.coerce_options
suggests it takes a Hash and converts all the values to underlying Ruby types. So a username that is only numbers is converted to a number.After the conversion, the string "12345" is converted to the number 12345. And after that, a request for authentication of OpenStack API is sent.
In this case, OpenStack API in the response body is an empty string.
Then an error occurs. (can't decode JSON; response.body = "")
https://github.com/fog/fog-openstack/blob/master/lib/fog/openstack/auth/token/v3.rb#L58
I already wrote about this here fog/fog-core#247
Probably the best way would be to wrap the parameters after call coerce_options into a string?
The text was updated successfully, but these errors were encountered: