0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-01 02:52:58 +00:00

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
```
This commit is contained in:
Pavel Boldyrev 2021-09-07 18:46:02 -04:00
parent 2cbaa057eb
commit 90cda091a9
No known key found for this signature in database
GPG Key ID: 9A3B05A2B8921AD9

View File

@ -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 {