mirror of
https://github.com/ARM-software/devlib.git
synced 2025-06-24 07:55:11 +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:
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user