Handle not found
[ZITADOPER-1]
This commit is contained in:
@@ -63,7 +63,7 @@ func (wf *wrappedMachineUserFinalizer) Reconcile(ctx context.Context, ztdClient
|
|||||||
Id: wf.machineuser.Status.UserId,
|
Id: wf.machineuser.Status.UserId,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if strings.Contains(err.Error(), `User doesn't exist`) {
|
if strings.Contains(err.Error(), `not be found`) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user