lib/fog/aws/requests/compute/unmonitor_instances.rb in fog-aws-3.1.0 vs lib/fog/aws/requests/compute/unmonitor_instances.rb in fog-aws-3.2.0

- old
+ new

@@ -1,8 +1,8 @@ module Fog - module Compute - class AWS + module AWS + class Compute class Real require 'fog/aws/parsers/compute/monitor_unmonitor_instances' # UnMonitor specified instance # http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-UnmonitorInstances.html @@ -20,11 +20,11 @@ def unmonitor_instances(instance_ids) params = Fog::AWS.indexed_param('InstanceId', instance_ids) request({ 'Action' => 'UnmonitorInstances', :idempotent => true, - :parser => Fog::Parsers::Compute::AWS::MonitorUnmonitorInstances.new + :parser => Fog::Parsers::AWS::Compute::MonitorUnmonitorInstances.new }.merge!(params)) end end class Mock @@ -33,10 +33,10 @@ response.status = 200 [*instance_ids].each do |instance_id| if instance = self.data[:instances][instance_id] instance['monitoring']['state'] = 'enabled' else - raise Fog::Compute::AWS::NotFound.new("The instance ID '#{instance_ids}' does not exist") + raise Fog::AWS::Compute::NotFound.new("The instance ID '#{instance_ids}' does not exist") end end instances_set = [*instance_ids].reduce([]) { |memo, id| memo << {'instanceId' => id, 'monitoring' => 'disabled'} } response.body = {'requestId' => 'some_request_id', 'instancesSet' => instances_set} response