lib/fog/riakcs/requests/provisioning/create_user.rb in fog-maestrodev-1.18.0.20131121075022 vs lib/fog/riakcs/requests/provisioning/create_user.rb in fog-maestrodev-1.18.0.20131122203507

- old
+ new

@@ -1,11 +1,11 @@ module Fog module RiakCS class Provisioning class Real def create_user(email, name, options = {}) - payload = MultiJson.encode({ :email => email, :name => name }) + payload = Fog::JSON.encode({ :email => email, :name => name }) headers = { 'Content-Type' => 'application/json' } if(options[:anonymous]) request( :expects => [201], @@ -18,10 +18,10 @@ begin response = @s3_connection.put_object('riak-cs', 'user', payload, headers) if !response.body.empty? case response.headers['Content-Type'] when 'application/json' - response.body = MultiJson.decode(response.body) + response.body = Fog::JSON.decode(response.body) end end response rescue Excon::Errors::Conflict => e raise Fog::RiakCS::Provisioning::UserAlreadyExists.new