The first assignment of port_info was from the scan_ports function
which could result in an exception and result in port_info being
unbound for the port stats scan below.
This patch just initializes port_info as an empty dict so the port
stats will always have an input.
Reviewed: https:/ /review. openstack. org/206764 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=4021fe30a91 5c5478d1053b08e 693c7f5c6270f4
Committed: https:/
Submitter: Jenkins
Branch: master
commit 4021fe30a915c54 78d1053b08e693c 7f5c6270f4
Author: Kevin Benton <email address hidden>
Date: Tue Jul 28 16:15:34 2015 -0700
Initialize port_info dict as blank in OVS agent
The first assignment of port_info was from the scan_ports function
which could result in an exception and result in port_info being
unbound for the port stats scan below.
This patch just initializes port_info as an empty dict so the port
stats will always have an input.
Closes-Bug: #1479105 3072c977cc13b73 e8cceb16712
Change-Id: I017a6dd334e267