summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/idrange.py
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 /ipalib/plugins/idrange.py
parent0750bab2594a2473e2011eee2896b2b74b2991f4 (diff)
downloadfreeipa-7eb6d8cb141760b51846f9679112f706003de08b.tar.gz
freeipa-7eb6d8cb141760b51846f9679112f706003de08b.tar.xz
freeipa-7eb6d8cb141760b51846f9679112f706003de08b.zip
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
Diffstat (limited to 'ipalib/plugins/idrange.py')
-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 abca49297..54b835e24 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: