diff options
-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) |