lib/fog/rackspace/service.rb in fog-maestrodev-1.14.0.20130806165225 vs lib/fog/rackspace/service.rb in fog-maestrodev-1.15.0.20130829165835
- old
+ new
@@ -28,9 +28,16 @@
def authenticate(options={})
self.send authentication_method, options
end
+ def request_without_retry(params, parse_json = true, &block)
+ response = @connection.request(request_params(params), &block)
+
+ process_response(response) if parse_json
+ response
+ end
+
def request(params, parse_json = true, &block)
first_attempt = true
begin
response = @connection.request(request_params(params), &block)
rescue Excon::Errors::Unauthorized => error