summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorNicolas Vollmar <nvo@scaling.ch>2024-05-17 08:45:45 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-05-17 13:36:48 +0000
commit2324694623026a7a8a2aed6345b669b8996d7801 (patch)
tree4bd4b57e980c2f57dc1030f4e9c0dcf72d07a3e8 /src/conf_mode
parentbadc6a27571b4af04f80cda4bae6931ed9d8c286 (diff)
downloadvyos-1x-2324694623026a7a8a2aed6345b669b8996d7801.tar.gz
vyos-1x-2324694623026a7a8a2aed6345b669b8996d7801.zip
T6358: Remove duplicate host name handling
(cherry picked from commit 240f199cdfadbc12ce713dae74c8db3af44a398c)
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/container.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/conf_mode/container.py b/src/conf_mode/container.py
index a73a18ffa..c3b661ac5 100755
--- a/src/conf_mode/container.py
+++ b/src/conf_mode/container.py
@@ -339,11 +339,6 @@ def generate_run_arguments(name, container_config):
entrypoint = json_write(container_config['entrypoint'].split()).replace('"', "&quot;")
entrypoint = f'--entrypoint &apos;{entrypoint}&apos;'
- hostname = ''
- if 'host_name' in container_config:
- hostname = container_config['host_name']
- hostname = f'--hostname {hostname}'
-
command = ''
if 'command' in container_config:
command = container_config['command'].strip()