diff options
author | Adam Young <ayoung@redhat.com> | 2011-06-10 14:02:13 -0400 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-06-10 14:37:54 -0400 |
commit | 6f1b62fb1ad8c4d1639a54874462c9e7204bbf4c (patch) | |
tree | deb41ce44c5c144e1b0a7cba21cd383bc086d37d | |
parent | 6ee9480b7b52086edcda4a157754ebab2476b660 (diff) | |
download | freeipa-6f1b62fb1ad8c4d1639a54874462c9e7204bbf4c.tar.gz freeipa-6f1b62fb1ad8c4d1639a54874462c9e7204bbf4c.tar.xz freeipa-6f1b62fb1ad8c4d1639a54874462c9e7204bbf4c.zip |
JSON marshalling list
Lists are sometimes marshalled as arrays. Before, we assumed they were CSV strings.
-rw-r--r-- | ipalib/parameters.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/parameters.py b/ipalib/parameters.py index acc7d2909..1551df3ff 100644 --- a/ipalib/parameters.py +++ b/ipalib/parameters.py @@ -1416,7 +1416,7 @@ class List(Param): super(List, self).__init__(name, *rules, **kw) def normalize(self, value): - if value and not isinstance(value, tuple): + if value and not type(value) in (list, tuple): reader = self.__unicode_csv_reader([value]) value = [] for row in reader: |