@add_auth_token_to_kwargs_from_env
    def get_by_name(self, name_or_id, **kwargs):
        instances = self.query(name=name_or_id, **kwargs)
        if not instances:
            return None
        else:
            if 1 > len(instances):
                raise Exception('More than one %s named "%s" are found.' %
                                (self.resource.__name__.lower(), name_or_id))
            return instances[0]
dataset/ETHPy150Open StackStorm/st2/st2client/st2client/models/core.py/ResourceManager.get_by_name/swapped operands of `>`