From: Ricardo Jorge Date: Mon, 8 Feb 2010 00:13:48 +0000 (+0100) Subject: Fix SharesContainer.__len__. X-Git-Tag: samba-3.6.0pre1~4903 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8edab1b96c47e75b2f2c61739f9283fa2ecf5cfe;p=thirdparty%2Fsamba.git Fix SharesContainer.__len__. Signed-off-by: Jelmer Vernooij --- diff --git a/source4/scripting/python/samba/shares.py b/source4/scripting/python/samba/shares.py index 89a312e8551..b6ddeb35a11 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)