From: Stephen Soltesz Date: Tue, 17 Mar 2009 18:58:23 +0000 (+0000) Subject: catch the 'cable error' status in ipals X-Git-Tag: Monitor-1.0-16~3 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=18fdba6898c130a3def99d18699b470d31e39ab5;p=monitor.git catch the 'cable error' status in ipals --- diff --git a/reboot.py b/reboot.py index 67be293..34b9b00 100755 --- a/reboot.py +++ b/reboot.py @@ -343,6 +343,8 @@ class IPAL(PCUControl): elif status == '0': # down power_on = False + elif status == '6': + raise ExceptionPort("IPAL reported 'Cable Error' on %s socket %s : %s" % (self.host, node_port, ret)) else: raise Exception("Unknown status for PCU %s socket %s : %s" % (self.host, node_port, ret)) else: @@ -371,6 +373,8 @@ class IPAL(PCUControl): elif status == '0': # down power_on = False + elif status == '6': + raise ExceptionPort("IPAL reported 'Cable Error' on %s socket %s : %s" % (self.host, node_port, ret)) else: raise Exception("Unknown status for PCU %s socket %s : %s" % (self.host, node_port, ret)) else: