From ca51a540fde3fc58b75eaab9443c85686555195b Mon Sep 17 00:00:00 2001 From: Tomas Tomecek Date: May 30 2017 13:08:08 +0000 Subject: nspawn run: raise if command failed Signed-off-by: Tomas Tomecek --- diff --git a/moduleframework/module_framework.py b/moduleframework/module_framework.py index 5ea8777..212c7f7 100644 --- a/moduleframework/module_framework.py +++ b/moduleframework/module_framework.py @@ -914,7 +914,7 @@ gpgcheck=0 if comout.exit_status == 0 or should_ignore: return comout else: - utils.process.CmdError(comout.command, comout) + raise utils.process.CmdError(comout.command, comout) def selfcheck(self): """