Projet

Général

Profil

0001-misc-exclude-known-directories-when-listing-tenants-.patch

Frédéric Péters, 22 août 2016 22:07

Télécharger (879 octets)

Voir les différences:

Subject: [PATCH] misc: exclude known directories when listing tenants (#12897)

 wcs/qommon/publisher.py | 2 ++
 1 file changed, 2 insertions(+)
wcs/qommon/publisher.py
1001 1001
    @classmethod
1002 1002
    def get_tenants(cls):
1003 1003
        for tenant in os.listdir(cls.APP_DIR):
1004
            if tenant in ('collectstatic', 'scripts'):
1005
                continue
1004 1006
            if tenant.endswith('.invalid'):
1005 1007
                continue
1006 1008
            if not os.path.isdir(os.path.join(cls.APP_DIR, tenant)):
1007
-