diff options
Diffstat (limited to 'source4/scripting/python')
| -rw-r--r-- | source4/scripting/python/samba/shares.py | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/shares.py b/source4/scripting/python/samba/shares.py index 622c3b6486..89a312e855 100644 --- a/source4/scripting/python/samba/shares.py +++ b/source4/scripting/python/samba/shares.py @@ -41,8 +41,11 @@ class SharesContainer(object):              return len(self._lp)-1          return len(self._lp) +    def keys(self): +        return [name for name in self._lp.services() if name != "global"] +      def __iter__(self): -        return self.lp.services() +        return iter(self.keys())  class Share(object):  | 
