mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Ensure get_network_complete mock returns like API
Booleans were being passed through unaltered. The API returns them as strings, and in Real mode we do not post-process them into boolean types. Update so that booleans are returned as strings, as per Real mode.
This commit is contained in:
parent
cb9802b239
commit
c8227647e8
1 changed files with 4 additions and 4 deletions
|
@ -43,22 +43,22 @@ module Fog
|
|||
:Configuration => {
|
||||
:IpScopes => {
|
||||
:IpScope => {
|
||||
:IsInherited => network[:IsInherited],
|
||||
:IsInherited => network[:IsInherited].to_s,
|
||||
:Gateway => network[:Gateway],
|
||||
:Netmask => network[:Netmask],
|
||||
:Dns1 => network[:Dns1],
|
||||
:Dns2 => network[:Dns2],
|
||||
:DnsSuffix => network[:DnsSuffix],
|
||||
:IsEnabled => true,
|
||||
:IsEnabled => true.to_s,
|
||||
:IpRanges => {
|
||||
:IpRange => [],
|
||||
},
|
||||
}
|
||||
},
|
||||
:FenceMode => network[:FenceMode],
|
||||
:RetainNetInfoAcrossDeployments => false,
|
||||
:RetainNetInfoAcrossDeployments => false.to_s,
|
||||
},
|
||||
:IsShared => network[:IsShared],
|
||||
:IsShared => network[:IsShared].to_s,
|
||||
}
|
||||
|
||||
body[:Configuration][:IpScopes][:IpScope][:IpRanges][:IpRange] =
|
||||
|
|
Loading…
Reference in a new issue