X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=reboot.py;fp=reboot.py;h=34b9b00ded6f6492e850b4f63dd147dfd3c4edd3;hb=18fdba6898c130a3def99d18699b470d31e39ab5;hp=67be293af08ddc40a7be0dd943bd95ceb401063f;hpb=842a7a17574e6fec92f219ceb35332a1bcafa3f7;p=monitor.git 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: