1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[openstack|compute] Fixed security groups typos

Conflicts:
	lib/fog/openstack/requests/compute/list_security_groups.rb
This commit is contained in:
Alfonso Juan Dillera 2012-08-31 18:52:52 +08:00 committed by Nelvin Driz
parent 8d06517538
commit baca5dd34b
2 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ module Fog
def save
requires :name, :description
data = connection.create_security_group(name, description)
merge_attributes(data.body['security_group'])
merge_attributes(data.body['security_groups'])
true
end

View file

@ -19,7 +19,7 @@ module Fog
class Mock
def list_security_groups
self.data[:security_groups] = [
self.data[:security_groups] ||= [
{ "rules" => [
{ "from_port" => 44,
"group" => {},
@ -57,7 +57,7 @@ module Fog
"name" => "test",
"description" => "this is a test"
}
] unless self.data.empty?
]
Excon::Response.new(
:body => { 'security_groups' => self.data[:security_groups] },
:headers => {