From 278d6f02d6fd41909de66511cf799e5747f1f466 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 15 May 2019 16:41:49 +0100 Subject: Don't collect `preprocess.command` errors after we get a HARD_FAIL --- modules/commands/__init__.py | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') diff --git a/modules/commands/__init__.py b/modules/commands/__init__.py index ff0be268..2b03dee1 100644 --- a/modules/commands/__init__.py +++ b/modules/commands/__init__.py @@ -171,6 +171,7 @@ class Module(ModuleManager.BaseModule): for returned in returns: if returned == utils.consts.PERMISSION_HARD_FAIL: hard_fail = True + break elif returned == utils.consts.PERMISSION_FORCE_SUCCESS: force_success = True elif returned: -- cgit v1.3.1-10-gc9f91