From 7c0f8b320803508f03c386c6498179a23c996c73 Mon Sep 17 00:00:00 2001 From: yinle Date: Fri, 21 Dec 2012 07:40:30 +0000 Subject: [PATCH] Fix bug #2987 getmacs -o has some issues. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14693 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCmac.pm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/perl-xCAT/xCAT/PPCmac.pm b/perl-xCAT/xCAT/PPCmac.pm index a12186903..43c3a230f 100644 --- a/perl-xCAT/xCAT/PPCmac.pm +++ b/perl-xCAT/xCAT/PPCmac.pm @@ -77,6 +77,15 @@ sub parse_args { return(usage( "Invalid Argument: $ARGV[0]" )); } #################################### + # Check -o argument + #################################### + if ( exists($opt{o}) ) { + unless (exists($opt{D})){ + return(usage( "The -o flag must be used with -D flag" )); + } + + } + #################################### # Check argument for ping test #################################### if ( exists($opt{D}) ) {