summaryrefslogtreecommitdiffstats
path: root/ipa-python/user.py
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2007-08-17 10:41:45 -0400
committerSimo Sorce <ssorce@redhat.com>2007-08-17 10:41:45 -0400
commit9238e3cb4af0b5ac490bb4b2f15d4d1b553e079c (patch)
tree31c881505d97c2eb01b5117287b1665b08bb4845 /ipa-python/user.py
parentd41db21a09b80968f22c2211bf6472fe95b34b3f (diff)
parent0ddf0699a5dd47c575a7e757f38819c8c74340f9 (diff)
downloadfreeipa.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.py4
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