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
This commit is contained in:
Tomas Babej
2013-06-11 13:07:06 +02:00
committed by Martin Kosek
parent 0750bab259
commit 7eb6d8cb14

View File

@@ -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: