diff options
author | Devaev Maxim <[email protected]> | 2018-12-16 01:58:35 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-12-16 01:58:35 +0300 |
commit | e5dfc9e30688752752c3ec20714c9b8c83efa4f7 (patch) | |
tree | b0433173e26e895d76dcb02f89a14073facdfb6f | |
parent | 88bbdf322fe70035e3a8b0f5121ef62837a7be5a (diff) |
fixed cleanup for non-unixsocket configs
-rw-r--r-- | kvmd/apps/cleanup/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/apps/cleanup/__init__.py b/kvmd/apps/cleanup/__init__.py index 22a9cede..89492ebd 100644 --- a/kvmd/apps/cleanup/__init__.py +++ b/kvmd/apps/cleanup/__init__.py @@ -37,7 +37,7 @@ def main() -> None: except subprocess.CalledProcessError: pass - unix_path = config["server"]["unix"] + unix_path = config["server"].get("unix", "") if unix_path and os.path.exists(unix_path): logger.info("Removing socket %r ...", unix_path) os.remove(unix_path) |