

def __init__(self, request, *args, **kwargs):
    super(UpdateServicePolicyForm, self).__init__(request, *args, **kwargs)
    try:
        policy_id = self.initial['service_policy_id']
        policy = client.get_networkservice_policy(request, args)
        self.fields['name'].initial = policy.name
        self.fields['description'].initial = policy.description
        self.fields['shared'].initial = policy.shared
    except Exception as e:
        msg = (_('Failed to retrive service policy details. %s') % str(e))
        LOG.debug(msg)

dataset/ETHPy150Open openstack/group-based-policy-ui/gbpui/panels/network_policy/forms.py UpdateServicePolicyForm.__init__/VarMisuse@57/75 `policy_id`->`args`