From 90cda091a95b13fa7c3ed3afed03be0831d0b68f Mon Sep 17 00:00:00 2001 From: Pavel Boldyrev <627562+bpg@users.noreply.github.com> Date: Tue, 7 Sep 2021 18:46:02 -0400 Subject: [PATCH] fix `make test` error `make test` was failing with ``` # github.com/danitso/terraform-provider-proxmox/proxmox proxmox/virtual_environment_vm_types.go:1148:3: Sprintf format %s has arg r.Model of wrong type *string make: *** [Makefile:82: test] Error 2 ``` --- proxmox/virtual_environment_vm_types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox/virtual_environment_vm_types.go b/proxmox/virtual_environment_vm_types.go index 3a90b93d..a283e4fc 100644 --- a/proxmox/virtual_environment_vm_types.go +++ b/proxmox/virtual_environment_vm_types.go @@ -1145,7 +1145,7 @@ func (r CustomVirtualIODevices) EncodeValues(key string, v *url.Values) error { // EncodeValues converts a CustomWatchdogDevice struct to a URL vlaue. func (r CustomWatchdogDevice) EncodeValues(key string, v *url.Values) error { values := []string{ - fmt.Sprintf("model=%s", r.Model), + fmt.Sprintf("model=%+v", r.Model), } if r.Action != nil {