Esempio n. 1
0
def check_stopped(i, timeout=10):
    stopped = False
    for x in xrange(1, timeout):
        ret = check_node(i)
        if ret is None:
            sleep(1)
        else:
            stopped = True
            break
    return stopped
Esempio n. 2
0
def check_stopped(i, timeout=10):
    stopped = False
    for x in xrange(1, timeout):
        ret = check_node(i)
        if ret is None:
            sleep(1)
        else:
            stopped = True
            break
    return stopped