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:
commit
0de4c68fb5
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user