From da64c891e952d31f2c52000fb20f091c1c7136dd Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Fri, 13 Jun 2014 12:40:32 +0200 Subject: [PATCH] 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 --- ipalib/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: