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:
parent
8d06517538
commit
baca5dd34b
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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 => {
|
||||
|
|
Loading…
Reference in a new issue