Skip to content

Commit 3cf3412

Browse files
Merge pull request #3034 from hunterkepley/ocm-18786
OCM-18786 | fix: Do not prompt capres in govcloud env
2 parents 858cfb5 + c6fa8b9 commit 3cf3412

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/machinepool/machinepool.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ func (m *machinePool) CreateNodePools(r *rosa.Runtime, cmd *cobra.Command, clust
767767
// Capacity reservation ID
768768
capacityReservationId := args.CapacityReservationId
769769

770-
if interactive.Enabled() && !autoscaling {
770+
if interactive.Enabled() && !autoscaling && !fedramp.Enabled() {
771771
capacityReservationId, err = interactive.GetString(interactive.Input{
772772
Question: "Capacity Reservation ID",
773773
Help: cmd.Flags().Lookup("capacity-reservation-id").Usage,
@@ -905,7 +905,7 @@ func (m *machinePool) CreateNodePools(r *rosa.Runtime, cmd *cobra.Command, clust
905905
rootDiskSize,
906906
)
907907

908-
if capacityReservationId != "" {
908+
if capacityReservationId != "" && !fedramp.Enabled() && !autoscaling {
909909
awsNodepoolBuilder = awsNodepoolBuilder.CapacityReservation(capacityReservation)
910910
}
911911

0 commit comments

Comments
 (0)