1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

M #-: fix LXD import template

This commit is contained in:
Ruben S. Montero 2020-05-05 18:22:57 +02:00
parent ebe6755fac
commit 3234ad9a93
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -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