[lxc-devel] [lxd/master] lxd/instance/qemu: Fix mem device naming
stgraber on Github
lxc-bot at linuxcontainers.org
Thu Sep 17 22:56:40 UTC 2020
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200917/34b4573c/attachment-0001.bin>
-------------- next part --------------
From 9c7be047c76b6a6565db55ffc546fc5193e31131 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Thu, 17 Sep 2020 18:46:09 -0400
Subject: [PATCH] lxd/instance/qemu: Fix mem device naming
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
lxd/instance/drivers/driver_qemu_templates.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lxd/instance/drivers/driver_qemu_templates.go b/lxd/instance/drivers/driver_qemu_templates.go
index 59a043c128..6950919840 100644
--- a/lxd/instance/drivers/driver_qemu_templates.go
+++ b/lxd/instance/drivers/driver_qemu_templates.go
@@ -268,8 +268,8 @@ policy = "bind"
[numa]
type = "node"
-nodeid = "{{$element}}"
-memdev = "mem{{$element}}"
+nodeid = "{{$index}}"
+memdev = "mem{{$index}}"
{{end}}
{{else}}
[object "mem0"]
More information about the lxc-devel
mailing list