mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 14:13:08 +00:00
fix: Avoid trying to report duplicated values in initial config
We do this by formatting the keys from the target state before comparing them with the ones from the current state (that are already formatted to strip the namespace prefix). Change-type: patch Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
This commit is contained in:
parent
6cd491c0c9
commit
922597e582
@ -316,7 +316,8 @@ module.exports = class APIBinder
|
|||||||
_reportInitialEnv: (apiEndpoint) =>
|
_reportInitialEnv: (apiEndpoint) =>
|
||||||
Promise.join(
|
Promise.join(
|
||||||
@deviceState.getCurrentForComparison()
|
@deviceState.getCurrentForComparison()
|
||||||
@getTargetState()
|
@getTargetState().then (conf) =>
|
||||||
|
@deviceState.deviceConfig.formatConfigKeys(conf)
|
||||||
@deviceState.deviceConfig.getDefaults()
|
@deviceState.deviceConfig.getDefaults()
|
||||||
@config.get('deviceId')
|
@config.get('deviceId')
|
||||||
(currentState, targetState, defaultConfig, deviceId) =>
|
(currentState, targetState, defaultConfig, deviceId) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user