From 0cc9b4d7f855a1e6500dad67342ec5b1eebbc960 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 17 Mar 2008 15:53:52 +0000 Subject: [PATCH] Address Sourceforge bug 1914498 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@795 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/lib/xcat/plugins/blade.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server-2.0/lib/xcat/plugins/blade.pm b/xCAT-server-2.0/lib/xcat/plugins/blade.pm index aba2f4f5d..79ede03c1 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/blade.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/blade.pm @@ -785,11 +785,11 @@ sub power { if ($subcommand eq "on" or ($subcommand eq "boot" and $stat eq "off")) { $data = $session->set(new SNMP::Varbind([".".$powerchangeoid,$slot,1,'INTEGER'])); unless ($data) { return (1,$session->{ErrorStr}); } - $stat = ($data ? "on" : "off"); + $stat .= " " . ($data ? "on" : "off"); } 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 = "reset"; + $stat = "on reset"; } if ($session->{ErrorStr}) { return (1,$session->{ErrorStr}); } if ($stat) { return (0,$stat); }