Skip to content

Commit

Permalink
Merge branch 'main' into fanny/operator-fix-imgpullsecrets
Browse files Browse the repository at this point in the history
  • Loading branch information
fanny-jiang authored Dec 27, 2024
2 parents 4dfb81a + b835574 commit 419738e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions scenarios/aws/ec2/vmargs.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ func buildArgs(options ...VMOption) (*vmArgs, error) {
}

// WithOS sets the OS
// Architecture defaults to os.AMD64Arch
// Version defaults to latest
func WithOS(osDesc os.Descriptor) VMOption {
return WithOSArch(osDesc, os.AMD64Arch)
return WithOSArch(osDesc, osDesc.Architecture)
}

// WithArch set the architecture and the operating system.
Expand Down
3 changes: 1 addition & 2 deletions scenarios/azure/compute/vmargs.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ func buildArgs(options ...VMOption) (*vmArgs, error) {
}

// WithOS sets the OS
// Architecture defaults to os.AMD64Arch
// Version defaults to latest
func WithOS(osDesc os.Descriptor) VMOption {
return WithOSArch(osDesc, os.AMD64Arch)
return WithOSArch(osDesc, osDesc.Architecture)
}

// WithArch set the architecture and the operating system.
Expand Down

0 comments on commit 419738e

Please sign in to comment.