From e312ffc22e62c5089e6ca07d55452b10646912d9 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Tue, 30 Aug 2016 11:58:06 +0200 Subject: [PATCH] Update commandManager.py --- src/fenrir-package/core/commandManager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fenrir-package/core/commandManager.py b/src/fenrir-package/core/commandManager.py index f71c3222..b4909e1a 100644 --- a/src/fenrir-package/core/commandManager.py +++ b/src/fenrir-package/core/commandManager.py @@ -31,6 +31,8 @@ class commandManager(): return environment def executeTriggerCommands(self, environment, trigger): + if environment['generalInformation ']['suspend']: + return environment for cmd in sorted(environment['commands'][trigger]): try: environ = environment['commands'][trigger][cmd].run(environment) @@ -42,6 +44,8 @@ class commandManager(): return environment def executeCommand(self, environment, currCommand, section = 'commands'): + if environment['generalInformation ']['suspend']: + return environment if self.isCommandDefined(environment): try: environ = environment['commands'][section][currCommand].run(environment)