Fix default value handling

Default and real value are casted to unicode and then compared.

Change-Id: I5defc7380adc840b84e7f3f3818f376c0d39ea23
This commit is contained in:
Nikita Konovalov 2013-07-26 19:50:37 +04:00
parent e553876d30
commit 2bdcfdce61
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ def parse_configs_from_context(context, defaults):
config = key_split[2]
if service not in configs_dict:
configs_dict[service] = dict()
if defaults[service][config] == val:
if unicode(defaults[service][config]) == unicode(val):
continue
configs_dict[service][config] = val
return configs_dict