Skip to content

Commit

Permalink
[aws|azure] do not override osDesc architecture in WithOS
Browse files Browse the repository at this point in the history
  • Loading branch information
pducolin committed Dec 27, 2024
1 parent 1a62db6 commit 25efe45
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 25efe45

Please sign in to comment.