Skip to content

fix: Distinguish restore of provisioned and unprovisioned device

David Runge requested to merge fix/restore-unprovisioned into main

Devices in unprovisioned state do not require authentication, as there are no users yet. Previously, the nethsm tool would require providing credentials to the command when restoring from backup, even if the targeted device was in unprovisioned state. This changes the nethsm system restore subcommand to first check the device's state and only then require authentication if the device is in operational state.

Fixes #25 (closed)

Edited by David Runge

Merge request reports