Skip to content

Commit

Permalink
Merge pull request #260 from mansam/fix-parent-subnet-relationship
Browse files Browse the repository at this point in the history
Fix parent subnet relationship
(cherry picked from commit 7277126)

https://bugzilla.redhat.com/show_bug.cgi?id=1562785
  • Loading branch information
aufi authored and simaishi committed Apr 2, 2018
1 parent ed645fd commit ef6267b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ def cloud_subnets
subnet.allocation_pools = s.allocation_pools
subnet.host_routes = s.host_routes
subnet.ip_version = s.ip_version
subnet.parent_cloud_subnet = persister.cloud_subnets.lazy_find(s.attributes["vsd_managed"])
if s.attributes["vsd_managed"]
subnet.parent_cloud_subnet = persister.cloud_subnets.lazy_find(s.attributes["vsd_id"])
end
subnet.cloud_tenant = persister.cloud_tenants.lazy_find(s.tenant_id)
subnet.cloud_network = persister.cloud_networks.lazy_find(s.network_id)
subnet.status = persister.cloud_networks.lazy_find(s.network_id, :key => :status)
Expand Down

0 comments on commit ef6267b

Please sign in to comment.