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:
parent
49b85bd2e9
commit
ae6e4f1bc1
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue