summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2013-06-11 13:07:06 +0200
committerMartin Kosek <mkosek@redhat.com>2013-06-19 16:04:12 +0200
commit7eb6d8cb141760b51846f9679112f706003de08b (patch)
tree03f14efb567c2bed43aa07205f5181f76ca40506
parent0750bab2594a2473e2011eee2896b2b74b2991f4 (diff)
downloadfreeipa-7eb6d8cb141760b51846f9679112f706003de08b.zip
freeipa-7eb6d8cb141760b51846f9679112f706003de08b.tar.gz
freeipa-7eb6d8cb141760b51846f9679112f706003de08b.tar.xz
Return ipaRangeType as a list in idrange commands
To be consistent with the rest of the LDAP commands, return ipaRangeType as a list of unicode strings. Regression caused by https://fedorahosted.org/freeipa/ticket/3647
-rw-r--r--ipalib/plugins/idrange.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/idrange.py b/ipalib/plugins/idrange.py
index abca492..54b835e 100644
--- a/ipalib/plugins/idrange.py
+++ b/ipalib/plugins/idrange.py
@@ -224,7 +224,7 @@ class idrange(LDAPObject):
if not any((options.get('pkey_only', False),
options.get('raw', False))):
range_type = entry_attrs['iparangetype'][0]
- entry_attrs['iparangetype'] = self.range_types.get(range_type, None)
+ entry_attrs['iparangetype'] = [self.range_types.get(range_type, None)]
# Remove the objectclass
if not keep_objectclass: