Fix KeyError if neutron security group is not TCP/UDP/ICMP and no ports
Previously, if a neutron security group rule was created that was not
TCP/UDP/ICMP and did not contain a port_range_min/max retrieving it from
nova-api would result in a KeyError in nova-api. This patch resolves
this issue.
Reviewed: https:/ /review. openstack. org/81432 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=3ad41459704 3979b8d73c17c05 e666cff33a9b88
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3ad414597043979 b8d73c17c05e666 cff33a9b88
Author: Aaron Rosen <email address hidden>
Date: Tue Mar 18 21:14:35 2014 -0700
Fix KeyError if neutron security group is not TCP/UDP/ICMP and no ports
Previously, if a neutron security group rule was created that was not
TCP/UDP/ICMP and did not contain a port_range_min/max retrieving it from
nova-api would result in a KeyError in nova-api. This patch resolves
this issue.
Change-Id: I6284a7a8690aec 9509b63f7cbd188 12e09ef3fdd
Closes-bug: #1294346