@classmethod
    def set_to(cls, name, num):
        if num < 0:
            raise CounterValueError('Counter[%s] can not be set to %s' % (name, num))
        else:
            counter = cls.collection.find_and_modify(
                {'name': name},
                {'$set': {'seq': num}},
                new=True,
                upsert=True
            )
            return counter['seq']
Returns the output of a command executed on the given node.
dataset/ETHPy150Open tevino/mongu/mongu.py/Counter.set_to--crossover with--dataset/ETHPy150Open ganeti/ganeti/qa/qa_utils.py/GetCommandOutput