diff --git a/ipalib/base.py b/ipalib/base.py index 2970bb188..d8f9ee728 100644 --- a/ipalib/base.py +++ b/ipalib/base.py @@ -469,7 +469,7 @@ class NameSpace(ReadOnly): if isinstance(key, str): return self.__map[key] if type(key) in (int, slice): - return self.__members[key] + return self.__members[key] # pylint: disable=invalid-sequence-index raise TypeError( TYPE_ERROR % ('key', (str, int, slice, 'object with __name__'), key, type(key))