def fix_apply_service(self, props):
    for policy_rule in props['entries']['policy_rule']:
        for (index, service) in enumerate((policy_rule['action_list']['apply_service'] or [])):
            try:
                si_obj = self.vnc_lib().service_instance_read(id=service)
            except:
                si_obj = self.vnc_lib().service_instance_read(fq_name_str=service)
            policy_rule['action_list']['apply_service'][index] = si_obj.get_fq_name_str()
def fix_apply_service(self, props):
    for policy_rule in props['entries']['policy_rule']:
        for (index, service) in enumerate((policy_rule['action_list']['apply_service'] or [])):
            try:
                si_obj = self.vnc_lib().service_instance_read(id=service)
            except:
                si_obj = self.vnc_lib().service_instance_read(fq_name_str=service)
            policy_rule['action_list']['apply_service'][index] = si_obj.get_fq_name_str()