2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-06 05:20:09 +00:00

Merge pull request #1533 from xuweibj/hmcpower

Improve performance for hmc mgt
This commit is contained in:
Xiaopeng Wang 2016-07-14 13:35:44 +08:00 committed by GitHub
commit 0de4c68fb5

View File

@ -237,7 +237,9 @@ sub powercmd_boot {
$op,
$d );
unless (@$result[0] != SUCCESS) {
$newnodestatus{$newstat}=[$name] if ($newstat);
if ($newstat) {
push @{ $newnodestatus{$newstat} }, $name;
}
}
push @output, [$name,@$result[1],@$result[0]];
}
@ -364,7 +366,7 @@ sub powercmd {
unless ($Rc != SUCCESS) {
if ($newstat) {
$newnodestatus{$newstat}=[$name];
push @{ $newnodestatus{$newstat} }, $name;
}
}