summaryrefslogtreecommitdiffstats
path: root/munin/publik_count
diff options
context:
space:
mode:
Diffstat (limited to 'munin/publik_count')
-rwxr-xr-xmunin/publik_count7
1 files changed, 5 insertions, 2 deletions
diff --git a/munin/publik_count b/munin/publik_count
index 1d127b0..0c0d79b 100755
--- a/munin/publik_count
+++ b/munin/publik_count
@@ -35,9 +35,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 = {}