From 6807697e6df93754a88f6a7bd6c70000412e66ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Pecchia?= <179218+mabeett@users.noreply.github.com> Date: Fri, 26 May 2023 18:16:44 +0200 Subject: [PATCH] go.mod: bump proxmox API go to 41e6ffadedb1 The latest main for the proxmox-api-go project includes RNG device creation. In the upgrade changed the return value for proxmox.ConfigQemu.CreateQemuEfiParams() --- builder/proxmox/common/step_start_vm.go | 9 ++------- go.mod | 4 ++-- go.sum | 8 ++++---- 3 files changed, 8 insertions(+), 13 deletions(-) diff --git a/builder/proxmox/common/step_start_vm.go b/builder/proxmox/common/step_start_vm.go index 9350fa7e..f45faf99 100644 --- a/builder/proxmox/common/step_start_vm.go +++ b/builder/proxmox/common/step_start_vm.go @@ -220,13 +220,8 @@ func (s *stepStartVM) Run(ctx context.Context, state multistep.StateBag) multist // so let's make sure it's there. if c.EFIConfig != (efiConfig{}) && c.Ctx.BuildType == "proxmox-clone" { addEFIConfig := make(map[string]interface{}) - err := config.CreateQemuEfiParams(addEFIConfig) - if err != nil { - err := fmt.Errorf("error creating EFI parameters: %s", err) - state.Put("error", err) - ui.Error(err.Error()) - } - _, err = client.SetVmConfig(vmRef, addEFIConfig) + config.CreateQemuEfiParams(addEFIConfig) + _, err := client.SetVmConfig(vmRef, addEFIConfig) if err != nil { err := fmt.Errorf("error updating template: %s", err) state.Put("error", err) diff --git a/go.mod b/go.mod index 4783c075..2b15dde8 100644 --- a/go.mod +++ b/go.mod @@ -3,12 +3,12 @@ module github.com/hashicorp/packer-plugin-proxmox go 1.18 require ( - github.com/Telmate/proxmox-api-go v0.0.0-20230302112457-ad6090b82842 + github.com/Telmate/proxmox-api-go v0.0.0-20230524203107-41e6ffadedb1 github.com/hashicorp/go-getter/v2 v2.2.0 github.com/hashicorp/hcl/v2 v2.14.1 github.com/hashicorp/packer-plugin-sdk v0.4.0 github.com/mitchellh/mapstructure v1.4.1 - github.com/stretchr/testify v1.8.1 + github.com/stretchr/testify v1.8.2 github.com/zclconf/go-cty v1.10.0 ) diff --git a/go.sum b/go.sum index 05a4637b..b551a21a 100644 --- a/go.sum +++ b/go.sum @@ -23,8 +23,8 @@ github.com/ChrisTrenkamp/goxpath v0.0.0-20210404020558-97928f7e12b6/go.mod h1:nu github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/Microsoft/go-winio v0.4.15-0.20190919025122-fc70bd9a86b5/go.mod h1:tTuCMEN+UleMWgg9dVx4Hu52b1bJo+59jBh3ajtinzw= github.com/Microsoft/hcsshim v0.8.9/go.mod h1:5692vkUqntj1idxauYlpoINNKeqCiG6Sg38RRsjT5y8= -github.com/Telmate/proxmox-api-go v0.0.0-20230302112457-ad6090b82842 h1:LhtQ8jqIhQ+su9fUDfkFjY3kYTIuC0zHvq+LEsaVnOM= -github.com/Telmate/proxmox-api-go v0.0.0-20230302112457-ad6090b82842/go.mod h1:zQ/B1nkMv6ueUlAEr0D/x5eaFe3rHSScuTc08dcvvPI= +github.com/Telmate/proxmox-api-go v0.0.0-20230524203107-41e6ffadedb1 h1:A1psGmAosA1Upwq03FN14SLRbJymKE0+QTTVSsFsEuo= +github.com/Telmate/proxmox-api-go v0.0.0-20230524203107-41e6ffadedb1/go.mod h1:HKwnwBcgJxT+UjTUyRP7+aDxXSgu0kLWvlrRhd4i1YU= github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo= github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= @@ -403,8 +403,8 @@ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= -github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= +github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= github.com/ugorji/go v1.2.6/go.mod h1:anCg0y61KIhDlPZmnH+so+RQbysYVyDko0IMgJv0Nn0= github.com/ugorji/go/codec v1.2.6 h1:7kbGefxLoDBuYXOms4yD7223OpNMMPNPZxXk5TvFcyQ=