[L6] Update cursor() calls to work with new lazy collections

This commit is contained in:
Dane Everitt
2019-09-04 21:05:46 -07:00
parent 08bdc9705f
commit 1c5b9dbb87
5 changed files with 10 additions and 10 deletions

View File

@@ -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('');
}