From 8ab893fb4605f12bddc882dd85787926d052e290 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 22 Aug 2016 22:06:11 +0200 Subject: [PATCH] misc: exclude known directories when listing tenants (#12897) --- wcs/qommon/publisher.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wcs/qommon/publisher.py b/wcs/qommon/publisher.py index de5db70..7a7d99b 100644 --- a/wcs/qommon/publisher.py +++ b/wcs/qommon/publisher.py @@ -1001,6 +1001,8 @@ class QommonPublisher(Publisher, object): @classmethod def get_tenants(cls): for tenant in os.listdir(cls.APP_DIR): + if tenant in ('collectstatic', 'scripts'): + continue if tenant.endswith('.invalid'): continue if not os.path.isdir(os.path.join(cls.APP_DIR, tenant)): -- 2.9.3