

@classmethod
def _get_by_object(cls, object):
    name = getattr(object, 'name', '')
    return cls.get_by_name(name)

dataset/ETHPy150Open StackStorm/st2/tools/migrate_rules_to_include_pack.py RuleWithoutPack._get_by_object/original