Fix bulk power when spanning multiple nodes, closes #1526
This commit is contained in:
parent
81409947cf
commit
e7e41d8ee8
3 changed files with 19 additions and 7 deletions
|
@ -102,7 +102,10 @@ class BulkPowerActionCommand extends Command
|
|||
$bar->clear();
|
||||
|
||||
try {
|
||||
$this->powerRepository->setServer($server)->sendSignal($action);
|
||||
$this->powerRepository
|
||||
->setNode($server->node)
|
||||
->setServer($server)
|
||||
->sendSignal($action);
|
||||
} catch (RequestException $exception) {
|
||||
$this->output->error(trans('command/messages.server.power.action_failed', [
|
||||
'name' => $server->name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue