]> Frank Brehm's Git Trees - pixelpark/create-terraform.git/commitdiff
Don't raise an error on a failed terrorm import
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 18 Dec 2019 11:14:15 +0000 (12:14 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 18 Dec 2019 11:14:15 +0000 (12:14 +0100)
lib/cr_tf/handler.py

index 273efaa26700e22b06526b46066ae1dee239fcea..7c31a7d96142f5ed921e3559bd8a708a4ff32ec6 100644 (file)
@@ -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))