Skip to content

Commit fc3f583

Browse files
committed
fix: regression for machines supporting nested virtualization on AWS
Due to refactor on compute-request selector the value for nested virtualization was missing when filtering machines. Then even when the flag was used the type of machines returned are not taking it into consideration. This commit ensures the value is pass again in the filter. Fix #563. Signed-off-by: Adrian Riobo <ariobolo@redhat.com>
1 parent 8e8888e commit fc3f583

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/provider/aws/data/compute-request.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ func getInstanceTypes(args *computerequest.ComputeRequestArgs) ([]string, error)
5858
maxResults := computerequest.MaxResults
5959
filters.MaxResults = &maxResults
6060
}
61+
filters.BareMetal = &args.NestedVirt
6162
//nolint:staticcheck // following method is deprecated but no replacement yet
6263
instanceTypesSlice, err := instanceSelector.Filter(
6364
context.Background(),

0 commit comments

Comments
 (0)