mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-24 15:56:40 +00:00
fix: Give unmanaged target states a source of 'local'
Change-type: patch Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
178e80d92a
commit
5bea0fdc9d
@ -351,7 +351,7 @@ module.exports = class DeviceState extends EventEmitter
|
|||||||
.then =>
|
.then =>
|
||||||
@deviceConfig.setTarget(target.local.config, trx)
|
@deviceConfig.setTarget(target.local.config, trx)
|
||||||
.then =>
|
.then =>
|
||||||
if localSource
|
if localSource or not apiEndpoint
|
||||||
@applications.setTarget(target.local.apps, target.dependent, 'local', trx)
|
@applications.setTarget(target.local.apps, target.dependent, 'local', trx)
|
||||||
else
|
else
|
||||||
@applications.setTarget(target.local.apps, target.dependent, apiEndpoint, trx)
|
@applications.setTarget(target.local.apps, target.dependent, apiEndpoint, trx)
|
||||||
|
Loading…
Reference in New Issue
Block a user