diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-04-07 13:02:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-07 13:02:36 +0300 |
commit | be84bbdf276ccb35b527546e5e99e14f124ce235 (patch) | |
tree | 75ee243070af92930bbe48324eed05295c0d37c0 /src/conf_mode | |
parent | c5cda0934df4c6ec3e5b368a907bbda04ffa359f (diff) | |
parent | 27234693f4ad44e38325950cbd978bf832c0b221 (diff) | |
download | vyos-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)
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/container.py | 2 |
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 |