summaryrefslogtreecommitdiffstats
path: root/munin/publik_count_
diff options
context:
space:
mode:
Diffstat (limited to 'munin/publik_count_')
-rwxr-xr-xmunin/publik_count_5
1 files changed, 4 insertions, 1 deletions
diff --git a/munin/publik_count_ b/munin/publik_count_
index 9d0e918..37679a9 100755
--- a/munin/publik_count_
+++ b/munin/publik_count_
@@ -1,6 +1,9 @@
#! /usr/bin/env python
+#%# family=auto
+#%# capabilities=autoconf
import cPickle
+import itertools
import os
import psycopg2
import sys
@@ -29,7 +32,7 @@ total_logged_user_count.label Front by logged user
''' % tenant
sys.exit(0)
-for tenant_dir in os.listdir(base_dir):
+for tenant_dir in itertools.chain(os.listdir(base_dir), os.listdir(os.path.join(base_dir, 'tenants'))):
if tenant_dir != tenant:
continue
cfg = cPickle.load(open(os.path.join(base_dir, tenant, 'config.pck')))