From 7eb6d8cb141760b51846f9679112f706003de08b Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Jun 19 2013 14:04:12 +0000 Subject: 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 --- 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: