CLI should load modules and not enable them

fixes #5527
This commit is contained in:
Thomas Gelf 2014-01-22 11:36:11 +00:00
parent 6e3e9b46a4
commit ba5ea18adf
1 changed files with 1 additions and 1 deletions

View File

@ -400,7 +400,7 @@ class Loader
$ns = 'Icinga\\Module\\' . ucfirst($module) . '\\Clicommands\\';
$this->assertModuleExists($module);
$manager = $this->app->getModuleManager();
$manager->enableModule($module);
$manager->loadModule($module);
$dir = $manager->getModuleDir($module) . '/application/clicommands';
$this->moduleCommands[$module] = $this->retrieveCommandsFromDir($dir);
$this->moduleInstances[$module] = array();