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:
committed by
Jelmer Vernooij
parent
20e1d5a72e
commit
8edab1b96c
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user