commit 22aed6d8061cc609da2351df23b6f5ef40ca8358
Author: Shih-Hao Li <email address hidden>
Date: Thu Mar 10 00:22:45 2016 -0800
Fix the context passed to get_subnets in _validate_routes
In the patch for bug #1538767 (https://review.openstack.org/#/c/273278),
get_ports() is passed with context.elevated(), while later get_subnet()
for those ports is still passed with the original context. This could
cause "Subnet could not be found" exception for ports only accessible
in context.elevated() but not in the original context.
This commit replaces context with context.elevated() in get_subnet().
Reviewed: https:/ /review. openstack. org/290184 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=22aed6d8061 cc609da2351df23 b6f5ef40ca8358
Committed: https:/
Submitter: Jenkins
Branch: master
commit 22aed6d8061cc60 9da2351df23b6f5 ef40ca8358
Author: Shih-Hao Li <email address hidden>
Date: Thu Mar 10 00:22:45 2016 -0800
Fix the context passed to get_subnets in _validate_routes
In the patch for bug #1538767 (https:/ /review. openstack. org/#/c/ 273278),
get_ports() is passed with context.elevated(), while later get_subnet()
for those ports is still passed with the original context. This could
cause "Subnet could not be found" exception for ports only accessible
in context.elevated() but not in the original context.
This commit replaces context with context.elevated() in get_subnet().
Related-Bug: #1538767 a431bfb22f847c3 b6f9671daea
Change-Id: I21e73625e0a625