diff options
Diffstat (limited to 'ipa-python/user.py')
-rw-r--r-- | ipa-python/user.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ipa-python/user.py b/ipa-python/user.py index 3c925bfb3..ecbd2845c 100644 --- a/ipa-python/user.py +++ b/ipa-python/user.py @@ -58,9 +58,7 @@ class User: def getValue(self,name): """Get the first value for the attribute named name""" value = self.data.get(name,[None]) - if (len(value) < 1): - return value - if isinstance(value[0],list) or isinstance(value[0],tuple): + if isinstance(value,list) or isinstance(value,tuple): return value[0] else: return value |