Add not found to project
[ZITADOPER-4]
This commit is contained in:
@@ -69,7 +69,7 @@ func (wf *wrappedProjectFinalizer) Reconcile(ctx context.Context, ztdClient *man
|
||||
|
||||
_, err := ztdClient.GetProjectByID(middleware.SetOrgID(ctx, org.Status.OrgId), &pb.GetProjectByIDRequest{Id: wf.project.Status.ProjectId})
|
||||
if err != nil {
|
||||
if strings.Contains(err.Error(), `doesn't exist`) {
|
||||
if strings.Contains(err.Error(), `not found`) {
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user