the option updateBMC of rspconfig only supported for CMM

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14630 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
zhaoertao 2012-12-12 07:27:32 +00:00
parent 419d69050f
commit 5cf269a5b6

View File

@ -5318,6 +5318,10 @@ sub dompa {
push @cfgtext, "Hardware type $mptype is not supported. Valid types(mm,cmm).\n";
$rc = 1;
$args = [];
} elsif ($mpa ne $node && grep /updateBMC/, @exargs) {
push @cfgtext, "The option updateBMC only supported for the CMM";
$rc = 1;
$args = [];
} else {
$result = clicmds($mpa,$user,$pass,$node,$slot,cmds=>\@exargs);
$rc |= @$result[0];