From 2f302250bef7f64f1dd9c45d6071178a42437f20 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 23 Jul 2008 13:26:09 +0000 Subject: [PATCH] -Fix rpower output to error on unsupported subcommands git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1933 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/blade.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index a84d0f3ae..8ff6c7630 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -1107,6 +1107,8 @@ sub power { $data = $session->set(new SNMP::Varbind([".".$powerresetoid,$slot ,1,'INTEGER'])); unless ($data) { return (1,$session->{ErrorStr}); } $stat = "on reset"; + } else { + return 1,"Unknown/Unsupported power command $subcommand"; } if ($session->{ErrorStr}) { return (1,$session->{ErrorStr}); } if ($stat) { return (0,$stat); }