mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
o/devicestate: return the error when reading device key fails
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
This commit is contained in:
@@ -654,7 +654,7 @@ func (m *DeviceManager) maybeRestoreAfterReset(device *auth.DeviceState) (*asser
|
||||
// perhaps device was unregistered at some point
|
||||
continue
|
||||
}
|
||||
return nil, nil
|
||||
return nil, err
|
||||
}
|
||||
return serialAs, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user