Пример #1
0
def ping(device_name):
    """Like ping, but block until completion and return the success
    status"""
    return wait_for_async(lambda cb :
            start_ping(device_name, cb))
Пример #2
0
def poweroff(device_name, max_time=30):
    """Like start_poweroff, but block until completion and return the success
    status"""
    return wait_for_async(lambda cb :
            start_poweroff(device_name, cb, max_time))