def rebootServer():
    """
    Reboot a server, prompting for `id`
    """
    id = getServerId()
    serverToReboot = serverManager.find(id)
    if not serverToReboot:  # find() returns None on failure to find server
        print id % "Server not found %s"
        return

    print "Hard or Soft (h/S): "
    hard_soft = stdin.readline().strip()
    if hard_soft in "Hh":
        rType  = rebootType.hard
    else:
        rType = rebootType.soft

    sleepTime = getSleepTime()  # Get sleep time to avoid overlimit fault
    serverManager.reboot(serverToReboot, rType)
    status = serverToReboot.status
    while status != u"ACTIVE":
        status = serverToReboot.status
        print "Status   : ", serverToReboot.status
        print "Progress : ", serverToReboot.progress
        print "Sleeping : ", sleepTime
        sleep(sleepTime)        # pacing to avoid overlimit fault

    print "Rebooted!"
dataset/ETHPy150Open rackerlabs/python-cloudservers/com/rackspace/cloud/servers/api/client/tests/cloud_servers_console.py/rebootServer/swapped operands of `%`