From da15d75ae4c88291d486f96dabe41459392c6d36 Mon Sep 17 00:00:00 2001 From: ligc Date: Thu, 16 Jun 2011 00:41:05 +0000 Subject: [PATCH] fix for bug 3299844: add -t node as default value for lsdef git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9810 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 44fb30e1e..24b42a17a 100644 --- a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm +++ b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm @@ -272,6 +272,12 @@ sub processArgs return 2; } + # -t node is the default value + if (!$::opt_t && !$::opt_a && ($::command eq "lsdef")) + { + $::opt_t = 'node'; + } + # Initialize some global arrays in case this is being called twice in the same process. # Currently only doing this when --nocache is specified, but i think it should be done all of the time. if ($::opt_nc) {