From 7f5ad8e22526165b0a2518e5eeb00f7e0b35aa21 Mon Sep 17 00:00:00 2001 From: grossmj Date: Wed, 20 Jul 2022 16:39:24 +0200 Subject: [PATCH] Ignore image detection for IOU user libraries in image directory --- gns3server/db/tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gns3server/db/tasks.py b/gns3server/db/tasks.py index f6ec4125..4a106ffe 100644 --- a/gns3server/db/tasks.py +++ b/gns3server/db/tasks.py @@ -91,7 +91,8 @@ async def get_computes(app: FastAPI) -> List[dict]: def image_filter(change: Change, path: str) -> bool: if change == Change.added: - if path.endswith(".tmp") or path.endswith(".md5sum") or path.startswith("."): + if path.endswith(".tmp") or path.endswith(".md5sum") or path.startswith(".") or \ + "/lib/" in path or "/lib64/" in path: return False header_magic_len = 7 with open(path, "rb") as f: