From 3234ad9a935fe99be4cb4726fcafe8ca164bf7bc Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Tue, 5 May 2020 18:22:57 +0200 Subject: [PATCH] M #-: fix LXD import template --- src/im_mad/remotes/lib/lxd.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/im_mad/remotes/lib/lxd.rb b/src/im_mad/remotes/lib/lxd.rb index 3fafe42ec5..9e223646d9 100644 --- a/src/im_mad/remotes/lib/lxd.rb +++ b/src/im_mad/remotes/lib/lxd.rb @@ -93,7 +93,7 @@ module LXD # Returns VM string in template def wild_template_string string = template_string_header - string << "IMPORT_VM_ID=#{@deploy_id}, " + string << "VM_NAME=#{@deploy_id}, " template = Base64.encode64(import_template).delete("\n") @@ -139,7 +139,7 @@ module LXD VCPU = #{vcpu} MEMORY = #{mem} HYPERVISOR = "lxd" - IMPORT_VM_ID = "#{@uuid}" + IMPORT_VM_ID = "#{@deploy_id}" OS = [ ARCH="#{arch}" ] EOT