summaryrefslogtreecommitdiff
path: root/nova/network
diff options
context:
space:
mode:
authorChris Friesen <chris.friesen@windriver.com>2017-05-18 09:05:17 -0600
committerChris Friesen <chris.friesen@windriver.com>2017-05-18 09:12:39 -0600
commitae6e4f1bc14e2e1d947554799fc9d9b81fe75288 (patch)
treeeb03bcf7ef49886881657696456bfb001a5c55e1 /nova/network
parent49b85bd2e9c77c6e0bd8141b38cd49efa5c06dc2 (diff)
downloadnova-ae6e4f1bc14e2e1d947554799fc9d9b81fe75288.tar.gz
correctly log port id in neutron api
Fix the log to correctly report the port id in the log. As it stands, it's reporting the last port id from the previous loop over the ports. Change-Id: I1f3dec9fd05ffa9f11f82576d0755d334aca01a0 Closes-Bug: #1691780
Diffstat (limited to 'nova/network')
-rw-r--r--nova/network/neutronv2/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/network/neutronv2/api.py b/nova/network/neutronv2/api.py
index 52d56b3d61..5984806c5a 100644
--- a/nova/network/neutronv2/api.py
+++ b/nova/network/neutronv2/api.py
@@ -2481,7 +2481,7 @@ class API(base_api.NetworkAPI):
if updates:
LOG.info(_LI("Updating port %(port)s with "
"attributes %(attributes)s"),
- {"port": p['id'], "attributes": updates},
+ {"port": port_id, "attributes": updates},
instance=instance)
try:
neutron.update_port(port_id, {'port': updates})