From 80d49a150985a74dd738222f1916d0d3e86cfa2f Mon Sep 17 00:00:00 2001 From: Adam Dobrawy Date: Mon, 29 Jun 2020 03:17:38 +0200 Subject: [PATCH] builder/hyperone: Add support for custom username in vm create --- builder/hyperone/step_create_vm.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builder/hyperone/step_create_vm.go b/builder/hyperone/step_create_vm.go index 58c1dfbc0..b1e1f0c9b 100644 --- a/builder/hyperone/step_create_vm.go +++ b/builder/hyperone/step_create_vm.go @@ -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)