mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-27 15:54:03 +02:00
ObjectsCommand: cleanup
This commit is contained in:
parent
3da917a400
commit
f5b4769f6e
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
namespace Icinga\Module\Director\Cli;
|
namespace Icinga\Module\Director\Cli;
|
||||||
|
|
||||||
use Icinga\Module\Director\Cli\Command;
|
|
||||||
use Icinga\Module\Director\Objects\IcingaObject;
|
use Icinga\Module\Director\Objects\IcingaObject;
|
||||||
|
|
||||||
class ObjectsCommand extends Command
|
class ObjectsCommand extends Command
|
||||||
@ -87,6 +86,9 @@ class ObjectsCommand extends Command
|
|||||||
echo $this->renderJson($res, !$this->params->shift('no-pretty'));
|
echo $this->renderJson($res, !$this->params->shift('no-pretty'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return IcingaObject[]
|
||||||
|
*/
|
||||||
protected function getObjects()
|
protected function getObjects()
|
||||||
{
|
{
|
||||||
if ($this->objects === null) {
|
if ($this->objects === null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user