Skip to content

Commit

Permalink
Merge pull request #16777 from rifelpet/automated-cherry-pick-of-#167…
Browse files Browse the repository at this point in the history
…76-origin-release-1.30

Automated cherry pick of #16776: aws: Fix conversion for instance-selector flags
  • Loading branch information
k8s-ci-robot authored Aug 25, 2024
2 parents c23a755 + 9a0baf2 commit 2b6ce45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/kops/toolbox_instance-selector.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,11 +398,11 @@ func getFilters(commandline *cli.CommandLineInterface, region string, zones []st
flags := commandline.Flags
var cpuArch ec2types.ArchitectureType
if v, ok := flags[cpuArchitecture]; ok {
cpuArch = ec2types.ArchitectureType(v.(string))
cpuArch = ec2types.ArchitectureType(*commandline.StringMe(v))
}
var uc ec2types.UsageClassType
if v, ok := flags[usageClass]; ok {
uc = ec2types.UsageClassType(v.(string))
uc = ec2types.UsageClassType(*commandline.StringMe(v))
}
return selector.Filters{
VCpusRange: commandline.Int32RangeMe(flags[vcpus]),
Expand Down

0 comments on commit 2b6ce45

Please sign in to comment.