lib/fog/compute/requests/aws/create_security_group.rb in fog-0.7.1 vs lib/fog/compute/requests/aws/create_security_group.rb in fog-0.7.2
- old
+ new
@@ -18,11 +18,11 @@
# * 'return'<~Boolean> - success?
def create_security_group(name, description)
request(
'Action' => 'CreateSecurityGroup',
'GroupName' => name,
- 'GroupDescription' => CGI.escape(description),
+ 'GroupDescription' => description,
:parser => Fog::Parsers::AWS::Compute::Basic.new
)
end
end
@@ -31,11 +31,11 @@
def create_security_group(name, description)
response = Excon::Response.new
unless @data[:security_groups][name]
data = {
- 'groupDescription' => CGI.escape(description).gsub('%20', '+'),
- 'groupName' => CGI.escape(name).gsub('%20', '+'),
+ 'groupDescription' => description,
+ 'groupName' => name,
'ipPermissions' => [],
'ownerId' => @owner_id
}
@data[:security_groups][name] = data
response.body = {