From d6123581bc575cf6edef6a989c916cf89487ac1e Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Wed, 21 Jun 2023 13:12:33 +0200 Subject: [PATCH] fix features as int and network name --- src/lxc/lxc_utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lxc/lxc_utils.py b/src/lxc/lxc_utils.py index d4463b5..16343eb 100644 --- a/src/lxc/lxc_utils.py +++ b/src/lxc/lxc_utils.py @@ -101,9 +101,8 @@ def generate_pct_command_for_lxc(lxc: LXC, create: bool = True): ] # Check and include specific net0 parameters - net0_params = [] - if lxc.network.get("name") and lxc.network.get("name") != "": - net0_params.append(f"name={lxc.network['name']}") + net0_params = ["name=eth0"] + if lxc.network.get("bridge") and lxc.network.get("bridge") != "": net0_params.append(f"bridge={lxc.network['bridge']}") if lxc.network.get("firewall" and lxc.network.get("firewall") != ""):