Skip to content

Commit

Permalink
go.mod: bump proxmox API go to 41e6ffadedb1
Browse files Browse the repository at this point in the history
The latest main for the proxmox-api-go project includes RNG device
creation. In the upgrade changed the return value for
proxmox.ConfigQemu.CreateQemuEfiParams()
  • Loading branch information
mabeett committed May 26, 2023
1 parent 76fe454 commit 6807697
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
9 changes: 2 additions & 7 deletions builder/proxmox/common/step_start_vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down Expand Up @@ -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=
Expand Down

0 comments on commit 6807697

Please sign in to comment.