From 993e68dfbd1b4673a8ac5854487d0593aa58e65d Mon Sep 17 00:00:00 2001 From: alessandroargentieri Date: Mon, 23 Sep 2024 19:33:33 +0200 Subject: [PATCH] fix attached_volumes name --- instance.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/instance.go b/instance.go index 0fd1ff2..efced0b 100644 --- a/instance.go +++ b/instance.go @@ -53,7 +53,7 @@ type Instance struct { ReservedIPName string `json:"reserved_ip_name,omitempty"` ReservedIP string `json:"reserved_ip,omitempty"` Subnets []Subnet `json:"subnets,omitempty"` - AttachedVolume []AttachedVolume `json:"attached_volume,omitempty"` + AttachedVolumes []AttachedVolume `json:"attached_volumes,omitempty"` } //"cpu_cores":1,"ram_mb":2048,"disk_gb":25 @@ -101,7 +101,7 @@ type InstanceConfig struct { Tags []string `json:"-"` TagsList string `json:"tags"` FirewallID string `json:"firewall_id"` - AttachedVolume []AttachedVolume `json:"attached_volume"` + AttachedVolumes []AttachedVolume `json:"attached_volumes"` } // ListInstances returns a page of Instances owned by the calling API account