

def _rule_get(request, rule_id, expand_policy):
    rule = neutronclient(request).show_firewall_rule(rule_id).get('firewall_rule')
    if expand_policy:
        if rule['firewall_policy_id']:
            rule['policy'] = _policy_get(request, rule['firewall_policy_id'], expand_rule=False)
        else:
            rule_id['policy'] = None
    return Rule(rule)

dataset/ETHPy150Open openstack/horizon/openstack_dashboard/api/fwaas.py _rule_get/VarMisuse@68/106 `rule`->`rule_id`