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";