mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
InspectController: pimp commands action
This commit is contained in:
parent
570f8d9440
commit
07cf2f53a8
@ -53,7 +53,15 @@ class InspectController extends ActionController
|
||||
|
||||
public function commandsAction()
|
||||
{
|
||||
print_r($this->api()->getCheckCommandObjects());
|
||||
$db = $this->db();
|
||||
echo '<pre>';
|
||||
foreach ($this->api()->setDb($db)->getCheckCommandObjects() as $object) {
|
||||
if (! $object::exists($object->object_name, $db)) {
|
||||
// var_dump($object->store());
|
||||
echo $object;
|
||||
}
|
||||
}
|
||||
echo '</pre>';
|
||||
exit;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user