diff --git a/molecule/specs/plugins/tar_plugin.py b/molecule/specs/plugins/tar_plugin.py index 6ddf273..c5a9384 100644 --- a/molecule/specs/plugins/tar_plugin.py +++ b/molecule/specs/plugins/tar_plugin.py @@ -160,10 +160,10 @@ class TarHandler(GenericExecutionStep, BuiltinHandlerMixin): def kill(self, success = True): if not success: self._run_error_script(None, self.chroot_path, None) - try: - shutil.rmtree(self.metadata['chroot_tmp_dir'], True) - except (shutil.Error, OSError,): - pass + try: + shutil.rmtree(self.metadata['chroot_tmp_dir'], True) + except (shutil.Error, OSError,): + pass return 0 class IsoToTarSpec(GenericSpec):