Merge pull request #9497 from ad-m/hyperone-username

builder/hyperone: Add support for custom username in vm create
This commit is contained in:
Megan Marsh 2020-06-30 10:51:25 -07:00 committed by GitHub
commit 50c65847d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ func (s *stepCreateVM) Run(ctx context.Context, state multistep.StateBag) multis
Netadp: []openapi.VmCreateNetadp{netAdapter},
UserMetadata: config.UserData,
Tag: config.VmTags,
Username: config.Comm.SSHUsername,
}
vm, _, err := client.VmApi.VmCreate(ctx, options)