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 53e577310..50c3424d2 100755
--- a/src/conf_mode/container.py
+++ b/src/conf_mode/container.py
@@ -423,7 +423,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: