1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[vcloud_director] fix to input format for post_create_org_vdc_network

Noticed error in input format surrounding IpRanges, where input missing the IpRange elements (instead was just created in Generator)
This commit is contained in:
Mike Pountney 2013-12-18 10:31:50 +00:00
parent 61cd05f695
commit a4320f32ce

View file

@ -35,11 +35,13 @@ module Fog
IsEnabled ip_scope[:IsEnabled] if ip_scope.key?(:IsEnabled)
if ip_ranges = ip_scope[:IpRanges]
IpRanges {
ip_ranges.each do |ip_range|
IpRange {
StartAddress ip_range[:StartAddress]
EndAddress ip_range[:EndAddress]
}
ip_ranges.each do |h|
if h.key?(:IpRange)
IpRange {
StartAddress h[:IpRange][:StartAddress]
EndAddress h[:IpRange][:EndAddress]
}
end
end
}
end