Skip to content

Commit

Permalink
added experimentID in response of saveChaosExperiment API (#4765)
Browse files Browse the repository at this point in the history
Signed-off-by: Sarthak Jain <[email protected]>
  • Loading branch information
SarthakJain26 authored Jul 15, 2024
1 parent 7423b82 commit 374c76f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (c *ChaosExperimentHandler) SaveChaosExperiment(ctx context.Context, reques
return "", err
}

return "experiment updated successfully", nil
return fmt.Sprintf("experiment updated successfully with ID %s", wfDetails.ExperimentID), nil
}
err = c.validateDuplicateExperimentName(ctx, projectID, request.Name)
if err != nil {
Expand All @@ -150,7 +150,7 @@ func (c *ChaosExperimentHandler) SaveChaosExperiment(ctx context.Context, reques
return "", err
}

return "experiment saved successfully", nil
return fmt.Sprintf("experiment saved successfully with ID %s", wfDetails.ExperimentID), nil
}

func (c *ChaosExperimentHandler) CreateChaosExperiment(ctx context.Context, request *model.ChaosExperimentRequest, projectID string, username string) (*model.ChaosExperimentResponse, error) {
Expand Down

0 comments on commit 374c76f

Please sign in to comment.