From 1521e5834bcec45bc44886e24f72ccf3e0fbf9e1 Mon Sep 17 00:00:00 2001 From: ligc Date: Thu, 27 Dec 2012 05:50:35 +0000 Subject: [PATCH] fix for bug 3050: -t and -a could not be used together git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14715 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/DBobjectdefs.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm index 08f06ae13..600c16175 100644 --- a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm +++ b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm @@ -311,6 +311,14 @@ sub processArgs return 2; } + # -a and -t cannot be used together + if ($::opt_a && $::opt_t) { + my $rsp; + $rsp->{data}->[0] = "The flags \'-a'\ and \'-t'\ cannot be used together."; + xCAT::MsgUtils->message("E", $rsp, $::callback); + return 2; + } + # -l and -s cannot be used together if ($::opt_l && $::opt_s) { my $rsp;