summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-11-10 17:07:41 -0500
committerRob Crittenden <rcritten@redhat.com>2008-11-12 15:56:15 -0500
commit058958ff897836a232bb41d870bc372d257499f9 (patch)
treed860440a84255a9a7e93aad5b269ada39b3d4347
parent380940ccc691076b3a1564ee17898809b12225e7 (diff)
downloadfreeipa-058958ff897836a232bb41d870bc372d257499f9.zip
freeipa-058958ff897836a232bb41d870bc372d257499f9.tar.gz
freeipa-058958ff897836a232bb41d870bc372d257499f9.tar.xz
Fix appending to a multi-valued field.
There was a bug where only the first value of a multi-valued field would be returned.
-rw-r--r--ipa-admintools/ipa-moduser2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipa-admintools/ipa-moduser b/ipa-admintools/ipa-moduser
index 5f0bc6a..ec483a5 100644
--- a/ipa-admintools/ipa-moduser
+++ b/ipa-admintools/ipa-moduser
@@ -204,7 +204,7 @@ def main():
set_add_usage("add")
sys.exit(1)
(attr,value) = a
- cvalue = user.getValue(attr)
+ cvalue = user.getValues(attr)
if cvalue:
if isinstance(cvalue,str):
cvalue = [cvalue]