1
0
mirror of https://github.com/ARM-software/devlib.git synced 2024-10-06 02:40:50 +01:00

target/TypedKernelConfig: Fix converting to string method

Some strings already quoted and therefore result in being quoted twice.
Strip off existing quotes before quoting the value to prevent this.
This commit is contained in:
Marc Bonnici 2019-01-30 14:26:05 +00:00 committed by setrofim
parent 17d4b22b9f
commit ac19873423

View File

@ -1856,7 +1856,7 @@ class TypedKernelConfig(Mapping):
elif isinstance(val, KernelConfigTristate):
return val.value
elif isinstance(val, basestring):
return '"{}"'.format(val)
return '"{}"'.format(val.strip('"'))
else:
return str(val)