From 61f28510061a63a560ab9f3bae91910c7f09a1fc Mon Sep 17 00:00:00 2001 From: Bruce Potter Date: Wed, 18 Dec 2013 15:42:25 -0500 Subject: [PATCH] fixed Error: at the beginning of monshow usage (feature request 73) --- xCAT-server/lib/xcat/plugins/monctrlcmds.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/monctrlcmds.pm b/xCAT-server/lib/xcat/plugins/monctrlcmds.pm index e624cc7bf..453b74947 100644 --- a/xCAT-server/lib/xcat/plugins/monctrlcmds.pm +++ b/xCAT-server/lib/xcat/plugins/monctrlcmds.pm @@ -1753,11 +1753,7 @@ sub preprocess_monshow $rsp->{data}->[10]= " -o specifies montype, it can be p, e or pe."; $rsp->{data}->[11]= " p means performance, e means events, default is e"; # $cb->($rsp); - if($error){ - xCAT::MsgUtils->message("E", $rsp, $callback); - } else { - xCAT::MsgUtils->message("D", $rsp, $callback); - } + xCAT::MsgUtils->message("D", $rsp, $callback, $error); } @ARGV=();