1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 10:10:46 +00: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): elif isinstance(val, KernelConfigTristate):
return val.value return val.value
elif isinstance(val, basestring): elif isinstance(val, basestring):
return '"{}"'.format(val) return '"{}"'.format(val.strip('"'))
else: else:
return str(val) return str(val)