From c8227647e838278c1fb4ca1ae0b0e2ff477770b6 Mon Sep 17 00:00:00 2001 From: Mike Pountney Date: Wed, 26 Feb 2014 09:12:17 +0000 Subject: [PATCH] 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. --- .../requests/compute/get_network_complete.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/fog/vcloud_director/requests/compute/get_network_complete.rb b/lib/fog/vcloud_director/requests/compute/get_network_complete.rb index 1c6613a7a..67c1a5d80 100644 --- a/lib/fog/vcloud_director/requests/compute/get_network_complete.rb +++ b/lib/fog/vcloud_director/requests/compute/get_network_complete.rb @@ -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] =