Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/go_modules/github.com/pulumi/pulu…
Browse files Browse the repository at this point in the history
…mi/sdk/v3-3.144.1
  • Loading branch information
pducolin authored Dec 27, 2024
2 parents fce640c + b835574 commit 9d043c8
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 9d043c8

Please sign in to comment.