diff options
author | Tomas Babej <tbabej@redhat.com> | 2013-06-11 13:07:06 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-06-19 16:04:12 +0200 |
commit | 7eb6d8cb141760b51846f9679112f706003de08b (patch) | |
tree | 03f14efb567c2bed43aa07205f5181f76ca40506 | |
parent | 0750bab2594a2473e2011eee2896b2b74b2991f4 (diff) | |
download | freeipa-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
-rw-r--r-- | ipalib/plugins/idrange.py | 2 |
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: |