From 9053081d90c8990d7c5f012f7ae9fe123cf747f6 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Fri, 15 Oct 2010 06:43:38 +0000 Subject: [PATCH] Fixed the issue that lsslp output the usage msg if no noderange is specified. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7863 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/AAAusage.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/AAAusage.pm b/xCAT-server/lib/xcat/plugins/AAAusage.pm index 4f1c98053..daa97a8d8 100644 --- a/xCAT-server/lib/xcat/plugins/AAAusage.pm +++ b/xCAT-server/lib/xcat/plugins/AAAusage.pm @@ -56,7 +56,7 @@ sub preprocess_request { if (ref($extrargs)) { @exargs=@$extrargs; } - if (($#exargs==-1) or (($#exargs==0) and ($exargs[0] =~ /^\s*$/)) or (!$noderange)) { + if (($#exargs==-1) or (($#exargs==0) and ($exargs[0] =~ /^\s*$/)) or (!$noderange and $command ne "lsslp")) { $exargs[0] = "--help"; # force help if no args }