mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-23 15:32:24 +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 =>
|
||||
@deviceConfig.setTarget(target.local.config, trx)
|
||||
.then =>
|
||||
if localSource
|
||||
if localSource or not apiEndpoint
|
||||
@applications.setTarget(target.local.apps, target.dependent, 'local', trx)
|
||||
else
|
||||
@applications.setTarget(target.local.apps, target.dependent, apiEndpoint, trx)
|
||||
|
Loading…
Reference in New Issue
Block a user