]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Remove status initialization from plugin's create_firewall
authorarmando-migliaccio <armamig@gmail.com>
Mon, 25 Aug 2014 18:10:16 +0000 (11:10 -0700)
committerarmando-migliaccio <armamig@gmail.com>
Mon, 25 Aug 2014 18:10:16 +0000 (11:10 -0700)
This is overwritten by the DB class method, so here is
not necessary.

Change-Id: I7bda448dab81992c8fb6ef8d771138ff070360ba

neutron/services/firewall/fwaas_plugin.py

index 6a9fd1c5439e65b12295dd7156ed93ae2d4ae34d..4e206db0f5b7a5cadaaf8e895d60976e1fde4f76 100644 (file)
@@ -224,7 +224,6 @@ class FirewallPlugin(firewall_db.Firewall_db_mixin):
                                             filters={'tenant_id': [tenant_id]})
         if fw_count:
             raise FirewallCountExceeded(tenant_id=tenant_id)
-        firewall['firewall']['status'] = const.PENDING_CREATE
         fw = super(FirewallPlugin, self).create_firewall(context, firewall)
         fw_with_rules = (
             self._make_firewall_dict_with_rules(context, fw['id']))