summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Jorge <rvelhote@gmail.com>2010-02-08 01:13:48 +0100
committerJelmer Vernooij <jelmer@samba.org>2010-03-01 03:48:11 +0100
commit8edab1b96c47e75b2f2c61739f9283fa2ecf5cfe (patch)
tree561ee394e3e01af05c89953fcbdf68ace8fb30ec
parent20e1d5a72e8a7d8b3334f6f79bf586cedaa96431 (diff)
downloadsamba-8edab1b96c47e75b2f2c61739f9283fa2ecf5cfe.tar.gz
samba-8edab1b96c47e75b2f2c61739f9283fa2ecf5cfe.tar.bz2
samba-8edab1b96c47e75b2f2c61739f9283fa2ecf5cfe.zip
Fix SharesContainer.__len__.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
-rw-r--r--source4/scripting/python/samba/shares.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/shares.py b/source4/scripting/python/samba/shares.py
index 89a312e855..b6ddeb35a1 100644
--- a/source4/scripting/python/samba/shares.py
+++ b/source4/scripting/python/samba/shares.py
@@ -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)