Skip to content

Commit

Permalink
fix: return response payload
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-ibra committed Dec 27, 2024
1 parent 8833ba9 commit 6d8748b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@ func (h *V1Client) ApproveClusterRepave(clusterUID string) error {
}

// ValidateClusterRepave validates if cluster gets repaved for the specified packs.
func (h *V1Client) ValidateClusterRepave(clusterUID string, body *models.V1SpectroClusterPacksEntity) error {
func (h *V1Client) ValidateClusterRepave(clusterUID string, body *models.V1SpectroClusterPacksEntity) (*models.V1SpectroClusterRepaveValidationResponse, error) {
params := clientv1.NewV1SpectroClustersUIDValidateRepaveParamsWithContext(h.ctx).
WithUID(clusterUID).
WithBody(body)
_, err := h.Client.V1SpectroClustersUIDValidateRepave(params)
return err
resp, err := h.Client.V1SpectroClustersUIDValidateRepave(params)
return resp.Payload, err
}

// GetRepaveReasons retrieves a cluster's repave reasons.
Expand Down

0 comments on commit 6d8748b

Please sign in to comment.