lib/fog/aws/requests/dns/get_change.rb in fog-aws-3.1.0 vs lib/fog/aws/requests/dns/get_change.rb in fog-aws-3.2.0

- old
+ new

@@ -1,8 +1,8 @@ module Fog - module DNS - class AWS + module AWS + class DNS class Real require 'fog/aws/parsers/dns/get_change' # returns the current state of a change request # @@ -21,11 +21,11 @@ # that form or just the actual id (which is what this request needs) change_id = change_id.sub('/change/', '') request({ :expects => 200, - :parser => Fog::Parsers::DNS::AWS::GetChange.new, + :parser => Fog::Parsers::AWS::DNS::GetChange.new, :method => 'GET', :path => "change/#{change_id}" }) end end @@ -34,10 +34,10 @@ def get_change(change_id) response = Excon::Response.new # find the record with matching change_id # records = data[:zones].values.map{|z| z[:records].values.map{|r| r.values}}.flatten change = self.data[:changes][change_id] || - raise(Fog::DNS::AWS::NotFound.new("NoSuchChange => Could not find resource with ID: #{change_id}")) + raise(Fog::AWS::DNS::NotFound.new("NoSuchChange => Could not find resource with ID: #{change_id}")) response.status = 200 submitted_at = Time.parse(change[:submitted_at]) response.body = { 'Id' => change[:id],