From: Frank Brehm Date: Wed, 18 Dec 2019 11:14:15 +0000 (+0100) Subject: Don't raise an error on a failed terrorm import X-Git-Tag: 1.4.4~1^2~1 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=fa9ebec232e3273a1d60d2fb36f93e5ecb81a47d;p=pixelpark%2Fcreate-terraform.git Don't raise an error on a failed terrorm import --- 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))