Skip to content

Commit 7397493

Browse files
committed
test to not keep
1 parent d82ac4f commit 7397493

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

pkg/frontend/openshiftcluster_putorpatch.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,6 @@ func (f *frontend) _putOrPatchOpenShiftCluster(ctx context.Context, log *logrus.
252252
if isCreate {
253253
putOrPatchClusterParameters.converter.ToInternal(ext, doc.OpenShiftCluster)
254254

255-
err = f.setDefaultAndValidateInstallVersion(ctx, doc.OpenShiftCluster)
256-
if err != nil {
257-
return nil, err
258-
}
259-
ext = putOrPatchClusterParameters.converter.ToExternal(doc.OpenShiftCluster)
260-
261255
err = f.ValidateNewCluster(ctx, subscription, doc.OpenShiftCluster, putOrPatchClusterParameters.staticValidator, ext, putOrPatchClusterParameters.path)
262256
if err != nil {
263257
return nil, err
@@ -284,6 +278,11 @@ func (f *frontend) _putOrPatchOpenShiftCluster(ctx context.Context, log *logrus.
284278
}
285279

286280
if isCreate {
281+
err = f.setDefaultAndValidateInstallVersion(ctx, doc.OpenShiftCluster)
282+
if err != nil {
283+
return nil, err
284+
}
285+
287286
// on create, make the cluster resourcegroup ID lower case to work
288287
// around LB/PLS bug
289288
doc.OpenShiftCluster.Properties.ClusterProfile.ResourceGroupID = strings.ToLower(doc.OpenShiftCluster.Properties.ClusterProfile.ResourceGroupID)

0 commit comments

Comments
 (0)