From 18fdba6898c130a3def99d18699b470d31e39ab5 Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Tue, 17 Mar 2009 18:58:23 +0000 Subject: [PATCH] catch the 'cable error' status in ipals --- reboot.py | 4 ++++ 1 file changed, 4 insertions(+) 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: -- 2.45.2