diff options
author | Petr Viktorin <pviktori@redhat.com> | 2014-06-13 12:40:32 +0200 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-06-16 13:38:53 +0200 |
commit | da64c891e952d31f2c52000fb20f091c1c7136dd (patch) | |
tree | b51e43c424c86e380effce7b96874318ea83aff4 /ipalib | |
parent | 98851256f94efe55b873f01aa46b2cdcda4a3efb (diff) | |
download | freeipa-da64c891e952d31f2c52000fb20f091c1c7136dd.tar.gz freeipa-da64c891e952d31f2c52000fb20f091c1c7136dd.tar.xz freeipa-da64c891e952d31f2c52000fb20f091c1c7136dd.zip |
ipalib.config: Only convert basedn to DN
The current code would convert values to DN if the key was
a substring of 'basedn', e.g. 'base' or 'sed'.
Only convert if we're actually dealing with 'basedn'.
Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/config.py b/ipalib/config.py index f86c0a5ea..709e06741 100644 --- a/ipalib/config.py +++ b/ipalib/config.py @@ -257,7 +257,7 @@ class Env(object): value = m[value] elif value.isdigit(): value = int(value) - elif key in ('basedn'): + elif key == 'basedn': value = DN(value) else: try: |