From 321b06e1fb9abce54c874a2a42f6f687b1c3122e Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Wed, 8 Jul 2009 06:18:43 +0000 Subject: [PATCH] fixed defect:2817344. getmac -C option should not work with noderange. Otherwise, muiltiple computes nodes will use the same IP and ping the same management nodes git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3726 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCmac.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/perl-xCAT/xCAT/PPCmac.pm b/perl-xCAT/xCAT/PPCmac.pm index 654525d44..aeefca889 100644 --- a/perl-xCAT/xCAT/PPCmac.pm +++ b/perl-xCAT/xCAT/PPCmac.pm @@ -90,6 +90,9 @@ sub parse_args { } if ( exists($opt{C}) ) { + if ( scalar(@$node) > 1 ) { + return( [RC_ERROR,"Option '-C' doesn't work with noderange\n"] ); + } push @network, $_; } else { # get, check the node IP