Skip to content

Commit

Permalink
fix attached_volumes name
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandroargentieri committed Sep 23, 2024
1 parent 6af71f6 commit 993e68d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 993e68d

Please sign in to comment.