Skip to content

Commit

Permalink
fix condition on architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
bwagner5 committed Mar 16, 2021
1 parent 24b05e2 commit f147d6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cloudprovider/aws/packing/packing.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (p *podPacker) getNodeCapacities(constraints *cloudprovider.Constraints) ([

func describeInstanceTypesFiltersFrom(constraints *cloudprovider.Constraints) []*ec2.Filter {
architecture := "x86_64"
if constraints.Architecture != nil || *constraints.Architecture == provisioningv1alpha1.ArchitectureArm64 {
if constraints.Architecture != nil && *constraints.Architecture == provisioningv1alpha1.ArchitectureArm64 {
architecture = string(*constraints.Architecture)
}

Expand Down

0 comments on commit f147d6b

Please sign in to comment.