1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-06 08:59:08 +03:00

Fix SharesContainer.__len__.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
This commit is contained in:
Ricardo Jorge
2010-02-08 01:13:48 +01:00
committed by Jelmer Vernooij
parent 20e1d5a72e
commit 8edab1b96c

View File

@ -37,7 +37,7 @@ class SharesContainer(object):
return Share(self._lp[name])
def __len__(self):
if "global" in self._lp:
if "global" in self._lp.services():
return len(self._lp)-1
return len(self._lp)