From 86fded6cad3bffe360c6d2f79dfc69171ee7b8e2 Mon Sep 17 00:00:00 2001 From: yinle Date: Sun, 20 Feb 2011 13:25:32 +0000 Subject: [PATCH] FSP/BPA redundancy: modify the process of flag -S with lsdef git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8893 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/DBobjectdefs.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm index d5da28506..002852aac 100644 --- a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm +++ b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm @@ -207,6 +207,16 @@ sub processArgs return 2; } } + if ( scalar(@{$::args}) eq 1 and $::args->[0] eq '-S') + { + if ($::command eq "lsdef") { + push @ARGV, "-t"; + push @ARGV, "node"; + push @ARGV, "-s"; + } else { + return 2; + } + } if ($::command eq "lsdef") { if (scalar(@ARGV) == 1 && $ARGV[0] eq "-l") {