CMM CLI syntax changed, accomodate

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12750 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2012-05-16 20:42:16 +00:00
parent 383370e40f
commit a9c0248442

View File

@ -4582,7 +4582,7 @@ sub snmpcfg {
}
# Check the type of mm
my @data = $t->cmd("info -T system:$mm");
if (grep(/Mach type\/model: Chassis Management Module/, @data) && $mptype ne "cmm") {
if (grep(/: Chassis Management Module/, @data) && $mptype ne "cmm") {
$mptype="cmm";
#return ([1,"The hwtype attribute should be set to \'cmm\' for a Chassis Management Module."]);
}
@ -4649,7 +4649,7 @@ sub sshcfg {
# Check the type of mm
@data = $t->cmd("info -T system:$mm");
if (grep(/Mach type\/model: Chassis Management Module/, @data) && $mptype ne "cmm") {
if (grep(/: Chassis Management Module/, @data) && $mptype ne "cmm") {
#return ([1,"The hwtype attribute should be set to \'cmm\' for a Chassis Management Module."]);
$mptype="cmm"; #why in the world wouldn't we have just done this from the get go????
}