From 6f0bb2840b5b7ffa5d38e9b1e3d8d31aceab21d3 Mon Sep 17 00:00:00 2001 From: mxi1 Date: Tue, 14 Apr 2009 02:54:48 +0000 Subject: [PATCH] -Bug# 2636011 is fixed; one check point is added; to handle the condition where there's no arg passed to packimage git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3184 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/packimage.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/packimage.pm b/xCAT-server/lib/xcat/plugins/packimage.pm index fb735122a..66589f42d 100644 --- a/xCAT-server/lib/xcat/plugins/packimage.pm +++ b/xCAT-server/lib/xcat/plugins/packimage.pm @@ -44,7 +44,7 @@ sub process_request { $callback->({info=>[$version]}); return; } - if ($help) { + if ($help || scalar @ARGV == 0) { $callback->({info=>["packimage -h \npackimage -v \npackimage [-p profile] [-a architecture] [-o OS] [-m method]\n"]}); return; }