From 8edab1b96c47e75b2f2c61739f9283fa2ecf5cfe Mon Sep 17 00:00:00 2001 From: Ricardo Jorge Date: Mon, 8 Feb 2010 01:13:48 +0100 Subject: Fix SharesContainer.__len__. Signed-off-by: Jelmer Vernooij --- source4/scripting/python/samba/shares.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') 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) -- cgit