Révision 26e7ae9e
Fix Prosody Registered Users
I use python 2.6 & python 2.7
len([listfiles(account_dir)])
returns everytime 1
The generator must be executed to get the corrent number of registed users.
| plugins/prosody/prosody_ | ||
|---|---|---|
| 166 | 166 |
if mode == "config": |
| 167 | 167 |
print "%s.label %s" % (munin_var, vhost) |
| 168 | 168 |
else: |
| 169 |
accounts = len([listfiles(account_dir)])
|
|
| 169 |
accounts = len(list(listfiles(account_dir)))
|
|
| 170 | 170 |
print "%s.value %s" % (munin_var, accounts) |
| 171 | 171 |
|
| 172 | 172 |
def listdirs(folder): |
Formats disponibles : Unified diff