Handle not found

[ZITADOPER-1]
This commit is contained in:
Haim Kortovich
2024-05-21 13:23:55 -05:00
parent 5401efd067
commit f2da8be209

View File

@@ -63,7 +63,7 @@ func (wf *wrappedMachineUserFinalizer) Reconcile(ctx context.Context, ztdClient
Id: wf.machineuser.Status.UserId,
})
if err != nil {
if strings.Contains(err.Error(), `User doesn't exist`) {
if strings.Contains(err.Error(), `not be found`) {
return nil
}
return err