From: Frank Brehm Date: Fri, 13 Dec 2019 11:53:10 +0000 (+0100) Subject: Bugfixing on importing existing VMs in terraform X-Git-Tag: 1.3.13~1^2 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=d9fdab7766b65a268a195ae75957b4d7da007f0f;p=pixelpark%2Fcreate-terraform.git Bugfixing on importing existing VMs in terraform --- diff --git a/lib/cr_tf/handler.py b/lib/cr_tf/handler.py index 6ad9df0..ca7bf22 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.2.2' +__version__ = '3.2.3' LOG = logging.getLogger(__name__) _ = XLATOR.gettext @@ -2818,7 +2818,7 @@ class CreateTerraformHandler(BaseHandler): vm_obj = 'vsphere_virtual_machine.{}'.format(vm.tf_name) path = '/{dc}/{f}/{p}/{n}'.format( dc=self.vsphere[vs_name].dc, f=self.vsphere[vs_name].dc_obj.vm_folder, - p=vm.config_path, n=vm.name) + p=vm.path, n=vm.name) cmd = [str(self.terraform_cmd), 'import', vm_obj, path] result = self.run( cmd, may_simulate=True, timeout=tf_timeout,