lib/fog/rackspace/compute.rb in fog-0.3.13 vs lib/fog/rackspace/compute.rb in fog-0.3.14
- old
+ new
@@ -61,9 +61,10 @@
end
class Real
def initialize(options={})
+ require 'json'
credentials = Fog::Rackspace.authenticate(options)
@auth_token = credentials['X-Auth-Token']
uri = URI.parse(credentials['X-Server-Management-Url'])
@host = uri.host
@path = uri.path