summaryrefslogtreecommitdiffstats
path: root/ipalib/frontend.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/frontend.py')
-rw-r--r--ipalib/frontend.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py
index ac1f67ee1..6be50ba52 100644
--- a/ipalib/frontend.py
+++ b/ipalib/frontend.py
@@ -538,9 +538,15 @@ class Command(HasParam):
if attr in self.params:
value = self.params[attr](value)
if append and attr in newdict:
- newdict[attr].append(value)
+ if type(value) in (tuple,):
+ newdict[attr] += list(value)
+ else:
+ newdict[attr].append(value)
else:
- newdict[attr] = [value]
+ if type(value) in (tuple,):
+ newdict[attr] = list(value)
+ else:
+ newdict[attr] = [value]
return newdict
def __attributes_2_entry(self, kw):