Skip to content

Commit

Permalink
Merge pull request #2461 from radtriste/ocm-11158_fix_id_75150
Browse files Browse the repository at this point in the history
OCM-11158 | ci: Fix id:75150
  • Loading branch information
openshift-merge-bot[bot] authored Sep 16, 2024
2 parents 796d700 + 43d4996 commit 99f7539
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/utils/profilehandler/profile_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -605,11 +605,12 @@ func GenerateClusterCreateFlags(profile *Profile, client *rosacli.Client) ([]str
if profile.ClusterConfig.HCP {
flags = append(flags, "--hosted-cp")
}
clusterConfiguration.Nodes = &ClusterConfigure.Nodes{}
if profile.ClusterConfig.InstanceType != "" {
flags = append(flags, "--compute-machine-type", profile.ClusterConfig.InstanceType)
clusterConfiguration.Nodes = &ClusterConfigure.Nodes{
ComputeInstanceType: profile.ClusterConfig.InstanceType,
}
clusterConfiguration.Nodes.ComputeInstanceType = profile.ClusterConfig.InstanceType
} else {
clusterConfiguration.Nodes.ComputeInstanceType = con.DefaultInstanceType
}
if profile.ClusterConfig.KMSKey {
kmsKeyArn, err := PrepareKMSKey(profile.Region, false, "rosacli", profile.ClusterConfig.HCP, false)
Expand Down

0 comments on commit 99f7539

Please sign in to comment.