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
This commit is contained in:
wanghuaz 2009-07-08 06:18:43 +00:00
parent 264a71e2d3
commit 321b06e1fb

View File

@ -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