Skip to content

Commit

Permalink
Merge pull request #210 from civo/fix/attached_volumes-name
Browse files Browse the repository at this point in the history
fix attached_volumes name
  • Loading branch information
alessandroargentieri authored Sep 23, 2024
2 parents 6af71f6 + 993e68d commit d986a7a
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 d986a7a

Please sign in to comment.