lib/fog/openstack/requests/compute/create_volume.rb in fog-1.18.0 vs lib/fog/openstack/requests/compute/create_volume.rb in fog-1.19.0
- old
+ new
@@ -15,10 +15,10 @@
vanilla_options = ['snapshot_id']
vanilla_options.select{|o| options[o]}.each do |key|
data['volume'][key] = options[key]
end
request(
- :body => MultiJson.encode(data),
+ :body => Fog::JSON.encode(data),
:expects => [200, 202],
:method => 'POST',
:path => "os-volumes"
)
end