lib/fog/compute/requests/aws/create_security_group.rb in fog-0.8.2 vs lib/fog/compute/requests/aws/create_security_group.rb in fog-0.9.0

- old
+ new

@@ -1,8 +1,8 @@ module Fog - module AWS - class Compute + module Compute + class AWS class Real require 'fog/compute/parsers/aws/basic' # Create a new security group @@ -21,11 +21,11 @@ def create_security_group(name, description) request( 'Action' => 'CreateSecurityGroup', 'GroupName' => name, 'GroupDescription' => description, - :parser => Fog::Parsers::AWS::Compute::Basic.new + :parser => Fog::Parsers::Compute::AWS::Basic.new ) end end @@ -45,10 +45,10 @@ 'requestId' => Fog::AWS::Mock.request_id, 'return' => true } response else - raise Fog::AWS::Compute::Error.new("InvalidGroup.Duplicate => The security group '#{name}' already exists") + raise Fog::Compute::AWS::Error.new("InvalidGroup.Duplicate => The security group '#{name}' already exists") end end end end