Merge "Remove status initialization from plugin's create_firewall"

This commit is contained in:
Jenkins 2014-09-03 17:49:00 +00:00 committed by Gerrit Code Review
commit 2227bb9365

View 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']))