mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-02 01:07:57 +00:00
22a5b33196
Without this patch, if for some reason device pinning fails (e.g. connectivity goes down) or anything interrupts the initialization after provisioning completes but before pinning is completed, after a retry the supervisor would just skip the pinning code, leaving the device unpinned. This patch ensures that the pinning procedure is run even if the device was already provisioned (as long as the pinning flag has been set, of course). This matches the behavior that the CoffeeScript code had from before the TypeScript conversion. Change-type: patch Signed-off-by: Pablo Carranza Velez <pablo@balena.io>