mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-01 19:46:44 +00:00
When applying host config values like dtoverlay and dtparam, take values not starting with double quotes as single entries instead of arrays to parse
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
This commit is contained in:
parent
918372b569
commit
d84bcf0fb4
@ -208,6 +208,9 @@ module.exports = class DeviceConfig
|
||||
key.replace(configRegex(), '$2')
|
||||
parsedEnv = _.mapValues parsedEnv, (val, key) ->
|
||||
if _.includes(arrayConfigKeys, key)
|
||||
if !_.startsWith(val, '"')
|
||||
return [ val ]
|
||||
else
|
||||
return JSON.parse("[#{val}]")
|
||||
else
|
||||
return val
|
||||
|
Loading…
Reference in New Issue
Block a user