summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-07 07:56:50 +0200
committerGitHub <noreply@github.com>2024-04-07 07:56:50 +0200
commit44b1a30e9c6263388648e36eeeffd0c16f430614 (patch)
tree1896e5f5daee5d8885b3d8f57a9b0ccefcf01b2a
parent2bbded1e485614d40b2e95165629487537fd1757 (diff)
parent2463bd292f14e46fdb26116791a89ca2eb651d17 (diff)
downloadvyos-1x-44b1a30e9c6263388648e36eeeffd0c16f430614.tar.gz
vyos-1x-44b1a30e9c6263388648e36eeeffd0c16f430614.zip
Merge pull request #3272 from c-po/container-fix
container: T6208: fix AttributeError: 'ConfigDict' object has no attribute 'upper'
-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