Handle user not found

[ZITADOPER-1]
This commit is contained in:
Haim Kortovich
2024-05-21 13:04:14 -05:00
parent 1151d2f6bf
commit 5401efd067

View File

@@ -73,7 +73,9 @@ func (wf *wrappedMachineUserFinalizer) Reconcile(ctx context.Context, ztdClient
Id: wf.machineuser.Status.UserId,
})
if err != nil {
return err
if !strings.Contains(err.Error(), "not be found") {
return err
}
}
return nil
}