From f1bf007bc313e871ea52f6323bdf3b1400beeaf9 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Thu, 16 Aug 2012 14:16:25 +0800 Subject: [PATCH] Install method properly check if instance is installed --- lib/moodle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/moodle.py b/lib/moodle.py index ddc15a0..c4c2c30 100644 --- a/lib/moodle.py +++ b/lib/moodle.py @@ -178,7 +178,7 @@ class Moodle(object): def install(self, dbname = None, engine = None, dataDir = None, fullname = None, dropDb = False): """Launch the install script of an Instance""" - if not self.isInstalled(): + if self.isInstalled(): raise Exception('Instance already installed!') if dataDir == None or not os.path.isdir(dataDir): -- 2.11.0