From ba5ea18adf1f7b2ba61af4dff4fcc3b77c919fbf Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 22 Jan 2014 11:36:11 +0000 Subject: [PATCH] CLI should load modules and not enable them fixes #5527 --- library/Icinga/Cli/Loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Cli/Loader.php b/library/Icinga/Cli/Loader.php index 17c87bbe0..941ea070f 100644 --- a/library/Icinga/Cli/Loader.php +++ b/library/Icinga/Cli/Loader.php @@ -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();