summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/container.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conf_mode/container.py b/src/conf_mode/container.py
index bf83416b2..4e4db7180 100755
--- a/src/conf_mode/container.py
+++ b/src/conf_mode/container.py
@@ -459,7 +459,8 @@ def apply(container):
os.unlink(file_path)
continue
- if name in dict_search('container_restart', container):
+ tmp = dict_search('container_restart', container)
+ if tmp and name in tmp:
cmd(f'systemctl restart vyos-container-{name}.service')
if disabled_new: