From 812e96221d0b12a0d7f4a680d9c09f7634e1f984 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Fri, 26 Mar 2010 11:45:16 +0000 Subject: [PATCH] defect 2976609: make lsdef equal to lsdef -t node git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5588 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/DBobjectdefs.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm index 43cd7c231..158f9d5d6 100644 --- a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm +++ b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm @@ -200,7 +200,8 @@ sub processArgs @ARGV = @{$::args}; } else { if ($::command eq "lsdef") { - push @ARGV, "-a"; + push @ARGV, "-t"; + push @ARGV, "node"; push @ARGV, "-s"; } else { return 2; @@ -209,7 +210,8 @@ sub processArgs if ($::command eq "lsdef") { if (scalar(@ARGV) == 1 && $ARGV[0] eq "-l") { - push @ARGV, "-a"; + push @ARGV, "-t"; + push @ARGV, "node"; } } @@ -2786,7 +2788,7 @@ sub defls } else { - if ($#::clobjtypes > 0) + if (scalar(@::clobjtypes) > 0) { push (@{$rsp_info->{data}}, "$obj ($defhash{$obj}{'objtype'})"); }