mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 00:04:05 +02:00
CoreApi: provide active stage name
This commit is contained in:
parent
3d20e55748
commit
776cd98253
@ -42,6 +42,11 @@ class CoreApi
|
||||
return $this->client->get('config/packages')->getResult('name');
|
||||
}
|
||||
|
||||
public function getActiveStageName()
|
||||
{
|
||||
return current($this->listModuleStages('director', true));
|
||||
}
|
||||
|
||||
public function listModuleStages($name, $active = null)
|
||||
{
|
||||
$modules = $this->getModules();
|
||||
|
Loading…
x
Reference in New Issue
Block a user