aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2024-07-23 13:26:30 +0200
committerVratko Polak <vrpolak@cisco.com>2024-07-26 08:53:12 +0000
commitd3bb8ea95db40d074d3f35996fffe404fab42ba9 (patch)
treec5356ed0db8c90dc508c4a16eb232204210a701b
parent421111d9150b506a324f32c82b6ccb9abf7fb6c9 (diff)
fix(container): Remove obsolete LXC option
CSIT-1944 Change-Id: I0f763369acc560a5ab2d9db28fc25f20b1c5ffe7 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
-rw-r--r--resources/libraries/python/ContainerUtils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/resources/libraries/python/ContainerUtils.py b/resources/libraries/python/ContainerUtils.py
index ef08317420..7d6d4d8673 100644
--- a/resources/libraries/python/ContainerUtils.py
+++ b/resources/libraries/python/ContainerUtils.py
@@ -939,8 +939,7 @@ class LXC(ContainerEngine):
image = self.container.image if self.container.image \
else f"-d ubuntu -r jammy -a {target_arch}"
- cmd = f"lxc-create -t download --name {self.container.name} " \
- f"-- {image} --no-validate"
+ cmd = f"lxc-create -t download --name {self.container.name} -- {image}"
ret, _, _ = self.container.ssh.exec_command_sudo(cmd, timeout=1800)
if int(ret) != 0: