mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-07 14:09:35 -05:00
ProcessCommand: align usage of list methods
This commit is contained in:
parent
40de5a2b4d
commit
7d82bb05bd
1 changed files with 2 additions and 2 deletions
|
|
@ -49,7 +49,7 @@ class ProcessCommand extends Command
|
|||
public function listAction()
|
||||
{
|
||||
$noTitle = $this->params->shift('no-title');
|
||||
foreach ($this->storage->listProcesses() as $key => $title) {
|
||||
foreach ($this->storage->listProcessNames() as $key => $title) {
|
||||
if ($noTitle) {
|
||||
echo $key . "\n";
|
||||
} else {
|
||||
|
|
@ -146,7 +146,7 @@ class ProcessCommand extends Command
|
|||
|
||||
protected function getFirstProcessName()
|
||||
{
|
||||
$list = $this->storage->listProcesses();
|
||||
$list = $this->storage->listProcessNames();
|
||||
return key($list);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue