mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix appending to a multi-valued field.
There was a bug where only the first value of a multi-valued field would be returned.
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user