X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=pcucontrol%2Freboot.py;h=a54eead5b4c3639c4b7baf8e3e198e091ad0c471;hb=f60bc6208846ab5ed02e85645bcf424d12a4356b;hp=f27334818286506312c41c68a0123972014fbcc4;hpb=0dcdc23769191b843716096f97b14b8e06362643;p=pcucontrol.git diff --git a/pcucontrol/reboot.py b/pcucontrol/reboot.py index f273348..a54eead 100755 --- a/pcucontrol/reboot.py +++ b/pcucontrol/reboot.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2 # # Reboot specified nodes # @@ -33,7 +33,7 @@ import pcucontrol.transports.pyssh as pyssh #MONITOR_USER_ID = 11142 import logging -verbose = 1 +verbose = 0 #dryrun = 0; class ExceptionNoTransport(Exception): pass @@ -255,7 +255,7 @@ class Transport: if self.transport != None: output = self.transport.read_until(expected, self.TELNET_TIMEOUT) if output.find(expected) == -1: - print "OUTPUT: --%s--" % output + #print "OUTPUT: --%s--" % output raise ErrorClass, "'%s' not found: Got: %s" % (expected, output) else: self.transport.write(buffer + "\r\n")