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:
parent
17d4b22b9f
commit
ac19873423
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user