diff options
author | Ricardo Jorge <rvelhote@gmail.com> | 2010-02-08 01:13:48 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-03-01 03:48:11 +0100 |
commit | 8edab1b96c47e75b2f2c61739f9283fa2ecf5cfe (patch) | |
tree | 561ee394e3e01af05c89953fcbdf68ace8fb30ec /source4/scripting/python | |
parent | 20e1d5a72e8a7d8b3334f6f79bf586cedaa96431 (diff) | |
download | samba-8edab1b96c47e75b2f2c61739f9283fa2ecf5cfe.tar.gz samba-8edab1b96c47e75b2f2c61739f9283fa2ecf5cfe.tar.bz2 samba-8edab1b96c47e75b2f2c61739f9283fa2ecf5cfe.zip |
Fix SharesContainer.__len__.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source4/scripting/python')
-rw-r--r-- | source4/scripting/python/samba/shares.py | 2 |
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) |