mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws|compute] fix formatting for mock security groups
This commit is contained in:
parent
6ce84bdc5b
commit
f812565897
2 changed files with 10 additions and 8 deletions
|
@ -116,9 +116,10 @@ module Fog
|
|||
:owner_id => owner_id,
|
||||
:security_groups => {
|
||||
'default' => {
|
||||
'groupDescription' => 'default group',
|
||||
'groupName' => 'default',
|
||||
'ipPermissions' => [
|
||||
'groupDescription' => 'default group',
|
||||
'groupName' => 'default',
|
||||
'ipPermissionsEgress' => [],
|
||||
'ipPermissions' => [
|
||||
{
|
||||
'groups' => [{'groupName' => 'default', 'userId' => owner_id}],
|
||||
'fromPort' => -1,
|
||||
|
@ -141,7 +142,7 @@ module Fog
|
|||
'ipRanges' => []
|
||||
}
|
||||
],
|
||||
'ownerId' => owner_id
|
||||
'ownerId' => owner_id
|
||||
}
|
||||
},
|
||||
:snapshots => {},
|
||||
|
|
|
@ -35,10 +35,11 @@ module Fog
|
|||
response = Excon::Response.new
|
||||
unless self.data[:security_groups][name]
|
||||
data = {
|
||||
'groupDescription' => description,
|
||||
'groupName' => name,
|
||||
'ipPermissions' => [],
|
||||
'ownerId' => self.data[:owner_id]
|
||||
'groupDescription' => description,
|
||||
'groupName' => name,
|
||||
'ipPermissionsEgress' => [],
|
||||
'ipPermissions' => [],
|
||||
'ownerId' => self.data[:owner_id]
|
||||
}
|
||||
self.data[:security_groups][name] = data
|
||||
response.body = {
|
||||
|
|
Loading…
Reference in a new issue