

def handle(self, request, context):
    firewall_id = self.initial['firewall_id']
    name_or_id = (context.get('name') or firewall_id)
    context['admin_state_up'] = (msg['admin_state_up'] == 'True')
    try:
        firewall = api.fwaas.firewall_update(request, firewall_id, **context)
        msg = (_('Firewall %s was successfully updated.') % name_or_id)
        LOG.debug(msg)
        messages.success(request, msg)
        return firewall
    except Exception as e:
        msg = (_('Failed to update firewall %(name)s: %(reason)s') % {
            'name': name_or_id,
            'reason': e,
        })
        LOG.error(msg)
        redirect = reverse(self.failure_url)
        exceptions.handle(request, msg, redirect=redirect)

dataset/ETHPy150Open openstack/horizon/openstack_dashboard/dashboards/project/firewalls/forms.py UpdateFirewall.handle/VarMisuse@42/64 `context`->`msg`