diff options
author | Simo Sorce <ssorce@redhat.com> | 2007-08-17 10:41:45 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2007-08-17 10:41:45 -0400 |
commit | 9238e3cb4af0b5ac490bb4b2f15d4d1b553e079c (patch) | |
tree | 31c881505d97c2eb01b5117287b1665b08bb4845 /ipa-python/user.py | |
parent | d41db21a09b80968f22c2211bf6472fe95b34b3f (diff) | |
parent | 0ddf0699a5dd47c575a7e757f38819c8c74340f9 (diff) | |
download | freeipa.git-9238e3cb4af0b5ac490bb4b2f15d4d1b553e079c.tar.gz freeipa.git-9238e3cb4af0b5ac490bb4b2f15d4d1b553e079c.tar.xz freeipa.git-9238e3cb4af0b5ac490bb4b2f15d4d1b553e079c.zip |
Merge with upstream
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 3c925bfb..ecbd2845 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 |