Skip to content

Commit

Permalink
ResourceId for path
Browse files Browse the repository at this point in the history
  • Loading branch information
BCarvalheira committed Jul 10, 2023
1 parent 22997cb commit 2069c3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/frontend/openshiftcluster_preflightvalidation.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (f *frontend) preflightValidation(w http.ResponseWriter, r *http.Request) {
reply(log, w, header, b, statusCodeError(http.StatusOK))
}

func (f *frontend) _preflightValidation(ctx context.Context, log *logrus.Entry, raw json.RawMessage, apiVersion string, path string) api.ValidationResult {
func (f *frontend) _preflightValidation(ctx context.Context, log *logrus.Entry, raw json.RawMessage, apiVersion string, resourceID string) api.ValidationResult {
// unmarshal raw to OpenShiftCluster type
oc := &api.OpenShiftCluster{}
oc.Properties.ProvisioningState = api.ProvisioningStateSucceeded
Expand All @@ -89,7 +89,7 @@ func (f *frontend) _preflightValidation(ctx context.Context, log *logrus.Entry,
}

converter.ToInternal(ext, oc)
if err := staticValidator.Static(ext, nil, f.env.Location(), f.env.Domain(), f.env.FeatureIsSet(env.FeatureRequireD2sV3Workers), path); err != nil {
if err := staticValidator.Static(ext, nil, f.env.Location(), f.env.Domain(), f.env.FeatureIsSet(env.FeatureRequireD2sV3Workers), resourceID); err != nil {
return api.ValidationResult{
Status: api.ValidationStatusFailed,
Error: &api.ManagementErrorWithDetails{
Expand Down

0 comments on commit 2069c3e

Please sign in to comment.