mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Fix merge main
This commit is contained in:
parent
63a6bb8bf3
commit
f65f1d245f
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ func (svc *Service) LockHost(ctx context.Context, hostID uint) (unlockPIN string
|
|||
// locking validations are based on the platform of the host
|
||||
switch host.FleetPlatform() {
|
||||
case "ios", "ipados":
|
||||
return ctxerr.Wrap(ctx, fleet.NewInvalidArgumentError("host_id", "Can't lock iOS or iPadOS hosts. Use wipe instead."))
|
||||
return "", ctxerr.Wrap(ctx, fleet.NewInvalidArgumentError("host_id", "Can't lock iOS or iPadOS hosts. Use wipe instead."))
|
||||
case "darwin":
|
||||
if err := svc.VerifyMDMAppleConfigured(ctx); err != nil {
|
||||
if errors.Is(err, fleet.ErrMDMNotConfigured) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue