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 1b65e79..6f61867 100755
--- a/munin/publik_count
+++ b/munin/publik_count
@@ -1,8 +1,11 @@
#! /usr/bin/env python
+#%# family=auto
+#%# capabilities=autoconf
import cPickle
import os
import psycopg2
+import itertools
import sys
base_dir = None
@@ -27,8 +30,8 @@ count.label Count
total = 0
-for tenant in os.listdir(base_dir):
- if tenant in ('collectstatic', 'scripts', 'skeletons', 'spooler'):
+for tenant in itertools.chain(os.listdir(base_dir), os.listdir(os.path.join(base_dir, 'tenants')):
+ if tenant in ('collectstatic', 'scripts', 'skeletons', 'spooler', 'tenants'):
continue
if tenant.endswith('.invalid'):
continue