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
This commit is contained in:
Chris Friesen 2017-05-18 09:05:17 -06:00
parent 49b85bd2e9
commit ae6e4f1bc1
1 changed files with 1 additions and 1 deletions

View File

@ -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})