lib/fog/radosgw/requests/provisioning/create_user.rb in fog-radosgw-0.0.1 vs lib/fog/radosgw/requests/provisioning/create_user.rb in fog-radosgw-0.0.2
- old
+ new
@@ -8,12 +8,12 @@
if get_user(user_id).status != 404
raise Fog::Radosgw::Provisioning::UserAlreadyExists, "User with user_id #{user_id} already exists."
end
path = "admin/user"
- user_id = Fog::AWS.escape(user_id)
- display_name = Fog::AWS.escape(display_name)
- email = Fog::AWS.escape(email)
+ user_id = escape(user_id)
+ display_name = escape(display_name)
+ email = escape(email)
query = "?uid=#{user_id}&display-name=#{display_name}&email=#{email}&format=json"
params = {
:method => 'PUT',
:path => path,
}