From 04c1fda49e4c797ccd254d8e21360b973f6c7f4e Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 23 Jul 2008 13:50:01 +0000 Subject: [PATCH] -Correct bug where rpower reset on blade would say 'on reset' git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1937 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/blade.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index 6967160f9..38f600067 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -1109,7 +1109,7 @@ sub power { } elsif ($subcommand eq "reset" or ($subcommand eq "boot" and $stat eq "on")) { $data = $session->set(new SNMP::Varbind([".".$powerresetoid,$slot ,1,'INTEGER'])); unless ($data) { return (1,$session->{ErrorStr}); } - $stat = "on reset"; + if ($subcommand eq "boot") { $stat = "on reset"; } else { $stat = "reset"; } } elsif (not $validsub) { return 1,"Unknown/Unsupported power command $subcommand"; }