From fa9ebec232e3273a1d60d2fb36f93e5ecb81a47d Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 18 Dec 2019 12:14:15 +0100 Subject: [PATCH] Don't raise an error on a failed terrorm import --- lib/cr_tf/handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cr_tf/handler.py b/lib/cr_tf/handler.py index 273efaa..7c31a7d 100644 --- a/lib/cr_tf/handler.py +++ b/lib/cr_tf/handler.py @@ -60,7 +60,7 @@ from .terraform.disk import TerraformDisk from .xlate import XLATOR -__version__ = '3.4.2' +__version__ = '3.4.3' LOG = logging.getLogger(__name__) _ = XLATOR.gettext @@ -2847,7 +2847,7 @@ class CreateTerraformHandler(BaseHandler): msg = self.colored("Error message", ('BOLD', 'RED')) + ':\n' msg += to_str(e.stderr) print(msg) - raise ExpectedHandlerError(str(e)) + LOG.warn(_("Error on importing VM {!r}:").format(vm.name) + ' ' + str(e)) LOG.debug(_("Completed process:") + "\n" + str(result)) -- 2.39.5