From 83e12a6e7266ab1324f259eaed809f8db1118d7a Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Wed, 15 Oct 2014 13:42:30 +0200 Subject: [PATCH] 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 --- ipalib/plugins/idrange.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ipalib/plugins/idrange.py b/ipalib/plugins/idrange.py index 6c3be6e69595127e346969e41703dc98e783282e..fb198d79d4c14ffd5f7dc633c9f01a1465ff01d7 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 -- 2.1.0