lib/fog/openstack/metering.rb in fog-maestrodev-1.18.0.20131121075022 vs lib/fog/openstack/metering.rb in fog-maestrodev-1.18.0.20131122203507
- old
+ new
@@ -41,11 +41,10 @@
def self.reset
@data = nil
end
def initialize(options={})
- require 'multi_json'
@openstack_username = options[:openstack_username]
@openstack_tenant = options[:openstack_tenant]
@openstack_auth_uri = URI.parse(options[:openstack_auth_url])
@auth_token = Fog::Mock.random_base64(64)
@@ -88,12 +87,10 @@
class Real
attr_reader :current_user
attr_reader :current_tenant
def initialize(options={})
- require 'multi_json'
-
@openstack_auth_token = options[:openstack_auth_token]
unless @openstack_auth_token
missing_credentials = Array.new
@openstack_api_key = options[:openstack_api_key]
@@ -163,10 +160,10 @@
else
error
end
end
unless response.body.empty?
- response.body = MultiJson.decode(response.body)
+ response.body = Fog::JSON.decode(response.body)
end
response
end
private