Fix merge main

This commit is contained in:
Lucas Rodriguez 2024-06-14 12:52:41 -03:00
parent 63a6bb8bf3
commit f65f1d245f
No known key found for this signature in database
GPG key ID: 07D558B587D9E1FE

View file

@ -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) {