diff --git a/molecule/specs/plugins/remaster.py b/molecule/specs/plugins/remaster.py index 59b3ab1..df169be 100644 --- a/molecule/specs/plugins/remaster.py +++ b/molecule/specs/plugins/remaster.py @@ -209,6 +209,10 @@ class ChrootHandler(BuiltinChrootHandler): def run(self): + rc = BuiltinChrootHandler.run(self) + if rc != 0: + return rc + self.Output.updateProgress("[%s|%s] %s" % ( blue("ChrootHandler"),darkred(self.spec_name), _("hooks running"), @@ -249,10 +253,6 @@ class ChrootHandler(BuiltinChrootHandler): if rc != 0: return rc - rc = BuiltinChrootHandler.run(self) - if rc != 0: - return rc - return 0