Skip to content

Commit

Permalink
Merge pull request #90 from mansam/fix-network-port-subnet-collection
Browse files Browse the repository at this point in the history
Old Refresh: Don't error out if a port refers to an unknown subnet.
(cherry picked from commit c7c8332e68633188b220ee8948963c254506ce29)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1564264
  • Loading branch information
tzumainn authored and simaishi committed Apr 9, 2018
1 parent 15fa1b7 commit 2232142
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -208,7 +208,7 @@ def find_device_object(network_port)
subnet_id = network_port.fixed_ips.try(:first).try(:[], "subnet_id")
network_router = @data_index.fetch_path(:network_routers, network_port.device_id)
subnet = @data_index.fetch_path(:cloud_subnets, subnet_id)
subnet[:network_router] = network_router
subnet[:network_router] = network_router unless subnet.nil?
end
# Returning nil for non VM port, we don't want to store those as ports
nil
Expand Down

0 comments on commit 2232142

Please sign in to comment.