Projet

Général

Profil

Révision 26e7ae9e

ID26e7ae9e60865e8484f96b345986e3277615dbde
Parent 137cbf74
Enfant b5a78b91

Ajouté par hefee il y a plus de 12 ans

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.

Voir les différences:

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