summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-04-07 13:02:36 +0300
committerGitHub <noreply@github.com>2024-04-07 13:02:36 +0300
commitbe84bbdf276ccb35b527546e5e99e14f124ce235 (patch)
tree75ee243070af92930bbe48324eed05295c0d37c0
parentc5cda0934df4c6ec3e5b368a907bbda04ffa359f (diff)
parent27234693f4ad44e38325950cbd978bf832c0b221 (diff)
downloadvyos-1x-be84bbdf276ccb35b527546e5e99e14f124ce235.tar.gz
vyos-1x-be84bbdf276ccb35b527546e5e99e14f124ce235.zip
Merge pull request #3273 from vyos/mergify/bp/sagitta/pr-3272
container: T6208: fix AttributeError: 'ConfigDict' object has no attribute 'upper' (backport #3272)
-rwxr-xr-xsrc/conf_mode/container.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/container.py b/src/conf_mode/container.py
index abd2c5f21..0b57221b2 100755
--- a/src/conf_mode/container.py
+++ b/src/conf_mode/container.py
@@ -265,7 +265,7 @@ def generate_run_arguments(name, container_config):
capabilities = ''
if 'capability' in container_config:
for cap in container_config['capability']:
- cap = c.upper().replace('-', '_')
+ cap = cap.upper().replace('-', '_')
capabilities += f' --cap-add={cap}'
# Add a host device to the container /dev/x:/dev/x