summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspisarski <s.pisarski@cablelabs.com>2018-06-04 09:23:53 -0600
committerspisarski <s.pisarski@cablelabs.com>2018-06-04 09:23:53 -0600
commit9f00c18a8bda11e3ffdafa53832cf4816e785196 (patch)
tree280e86bbce468b1583fe79fae6354f439761f121
parentf17b5d4631682b4807dc1c4267da65258413ef73 (diff)
Fix to a router's internal subnet resoulution.
Ensures that any subnet added to the router is available to that project. Change-Id: Iddfad14a093551bc0f4a05c52b20f02db2474d78 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
-rw-r--r--snaps/openstack/utils/neutron_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/snaps/openstack/utils/neutron_utils.py b/snaps/openstack/utils/neutron_utils.py
index 78731ae..6daa712 100644
--- a/snaps/openstack/utils/neutron_utils.py
+++ b/snaps/openstack/utils/neutron_utils.py
@@ -269,7 +269,7 @@ def get_subnet_by_name(neutron, keystone, subnet_name, project_name=None):
if project_name:
project = keystone_utils.get_project_by_id(
keystone, subnet.project_id)
- if project:
+ if project.name == project_name:
return subnet
else:
return subnet