summaryrefslogtreecommitdiffstats
path: root/munin/publik_recent_count
diff options
context:
space:
mode:
Diffstat (limited to 'munin/publik_recent_count')
-rwxr-xr-xmunin/publik_recent_count7
1 files changed, 5 insertions, 2 deletions
diff --git a/munin/publik_recent_count b/munin/publik_recent_count
index 52c0361..f269feb 100755
--- a/munin/publik_recent_count
+++ b/munin/publik_recent_count
@@ -44,9 +44,12 @@ for tenant in itertools.chain(os.listdir(base_dir), os.listdir(os.path.join(base
continue
if tenant.endswith('.invalid'):
continue
- if not os.path.isdir(os.path.join(base_dir, tenant)):
+ dirname = os.path.join(base_dir, tenant)
+ if not os.path.exists(dirname):
+ dirname = os.path.join(base_dir, 'tenants', tenant)
+ if not os.path.isdir(dirname):
continue
- cfg = pickle.load(open(os.path.join(base_dir, tenant, 'config.pck'), 'rb'), encoding='utf-8')
+ cfg = pickle.load(open(os.path.join(dirname, 'config.pck'), 'rb'), encoding='utf-8')
if 'postgresql' not in cfg:
continue
psql_cfg = {}