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:
parent
61cd05f695
commit
a4320f32ce
1 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue