[L6] Update cursor() calls to work with new lazy collections
This commit is contained in:
parent
08bdc9705f
commit
1c5b9dbb87
5 changed files with 10 additions and 10 deletions
|
@ -98,7 +98,7 @@ class BulkPowerActionCommand extends Command
|
|||
$bar = $this->output->createProgressBar($count);
|
||||
$servers = $this->repository->getServersForPowerAction($servers, $nodes);
|
||||
|
||||
foreach ($servers as $server) {
|
||||
$servers->each(function ($server) use ($action, &$bar) {
|
||||
$bar->clear();
|
||||
|
||||
try {
|
||||
|
@ -117,7 +117,7 @@ class BulkPowerActionCommand extends Command
|
|||
|
||||
$bar->advance();
|
||||
$bar->display();
|
||||
}
|
||||
});
|
||||
|
||||
$this->line('');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue