From 0a7d9ced55e41bce30fcf2db5ffb9f6c00c3f8f5 Mon Sep 17 00:00:00 2001 From: yinle Date: Wed, 20 Apr 2011 06:51:35 +0000 Subject: [PATCH] Fix the mistake that the -l flag can't work with -S flag. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9353 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/DBobjectdefs.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm index afaf7d910..81e0099b6 100644 --- a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm +++ b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm @@ -220,6 +220,12 @@ sub processArgs } } + if ($::command eq "lsdef") { + if (scalar(@ARGV) == 2 && (($ARGV[0] eq "-l" && $ARGV[1] eq "-S") || ($ARGV[0] eq "-S" && $ARGV[1] eq "-l"))){ + push @ARGV, "-t"; + push @ARGV, "node"; + } + } if ($::command eq "lsdef") { if (scalar(@ARGV) == 1 && $ARGV[0] eq "-l") { push @ARGV, "-t";