summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-10-15 13:42:30 +0200
committerTomas Babej <tbabej@redhat.com>2014-11-11 10:56:16 +0100
commit3d11de4849cc2d7b88da6f2522424842dde68889 (patch)
tree3be248df9ac35732f6de4d2bf716dced53b0d282 /ipalib/plugins
parent61d98bdc5988b3b13d6cf21139bfef32ea1b0fc9 (diff)
downloadfreeipa-3d11de4849cc2d7b88da6f2522424842dde68889.tar.gz
freeipa-3d11de4849cc2d7b88da6f2522424842dde68889.tar.xz
freeipa-3d11de4849cc2d7b88da6f2522424842dde68889.zip
idrange: include raw range type in output
iparangetype output is a localized human-readable value which is not suitable for machine-based API consumers Solved by new iparangetyperaw output attribute which contains iparangetype's raw value Reviewed-By: Tomas Babej <tbabej@redhat.com>
Diffstat (limited to 'ipalib/plugins')
-rw-r--r--ipalib/plugins/idrange.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ipalib/plugins/idrange.py b/ipalib/plugins/idrange.py
index 6c3be6e69..fb198d79d 100644
--- a/ipalib/plugins/idrange.py
+++ b/ipalib/plugins/idrange.py
@@ -241,6 +241,7 @@ class idrange(LDAPObject):
if not any((options.get('pkey_only', False),
options.get('raw', False))):
range_type = entry_attrs['iparangetype'][0]
+ entry_attrs['iparangetyperaw'] = [range_type]
entry_attrs['iparangetype'] = [self.range_types.get(range_type, None)]
# Remove the objectclass