NSXv3: Avoid AttributeError in create_security_group exception handling

Change-Id: Iba1731e1fd4d3cd2bed9f79675636771e3189270
This commit is contained in:
Roey Chen 2016-03-10 02:58:14 -08:00
parent 57aa0ffd5e
commit 1239cee9a0

View File

@ -1690,8 +1690,8 @@ class NsxV3Plugin(addr_pair_db.AllowedAddressPairsMixin,
secgroup, resource_type='os-neutron-secgr-id',
project_name=context.tenant_name)
name = security.get_nsgroup_name(secgroup)
ns_group = None
firewall_section = None
ns_group = {}
firewall_section = {}
if not default_sg:
tenant_id = secgroup['tenant_id']