1
0
Fork 0
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:
Mike Pountney 2014-02-26 09:12:17 +00:00
parent cb9802b239
commit c8227647e8

View file

@ -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] =