Skip to content

Commit

Permalink
Bumpup civogo
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Anarase <[email protected]>
  • Loading branch information
vishalanarase committed Oct 1, 2024
1 parent de35c8c commit f659161
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions civo/instances/datasource_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ func dataSourceInstanceRead(_ context.Context, d *schema.ResourceData, m interfa
d.Set("created_at", foundImage.CreatedAt.UTC().String())
d.Set("notes", foundImage.Notes)

if len(foundImage.AttachedVolume) > 0 {
volumes := make([]map[string]interface{}, 0, len(foundImage.AttachedVolume))
for _, volume := range foundImage.AttachedVolume {
if len(foundImage.AttachedVolumes) > 0 {
volumes := make([]map[string]interface{}, 0, len(foundImage.AttachedVolumes))
for _, volume := range foundImage.AttachedVolumes {
volumeMap := map[string]interface{}{
"id": volume.ID,
}
Expand Down
8 changes: 4 additions & 4 deletions civo/instances/resource_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func resourceInstanceCreate(ctx context.Context, d *schema.ResourceData, m inter
})
}
if len(volumes) > 0 {
config.AttachedVolume = volumes
config.AttachedVolumes = volumes
}

log.Printf("[INFO] creating the instance %s", d.Get("hostname").(string))
Expand Down Expand Up @@ -388,9 +388,9 @@ func resourceInstanceRead(_ context.Context, d *schema.ResourceData, m interface
d.Set("initial_password", "")
}

if len(resp.AttachedVolume) > 0 {
volumes := make([]map[string]interface{}, 0, len(resp.AttachedVolume))
for _, volume := range resp.AttachedVolume {
if len(resp.AttachedVolumes) > 0 {
volumes := make([]map[string]interface{}, 0, len(resp.AttachedVolumes))
for _, volume := range resp.AttachedVolumes {
volumeMap := map[string]interface{}{
"id": volume.ID,
}
Expand Down
4 changes: 2 additions & 2 deletions civo/kubernetes/resource_kubernetes_cluster_nodepool.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func resourceKubernetesClusterNodePoolCreate(ctx context.Context, d *schema.Reso
}
}

newPool := &civogo.KubernetesClusterPoolUpdateConfig{
newPool := &civogo.KubernetesClusterPoolConfig{
ID: nodePoolLabel,
Count: count,
Size: size,
Expand Down Expand Up @@ -211,7 +211,7 @@ func resourceKubernetesClusterNodePoolUpdate(ctx context.Context, d *schema.Reso
}

if d.HasChange("node_count") {
poolUpdate.Count = d.Get("node_count").(int)
poolUpdate.Count = d.Get("node_count").(*int)
}

if d.HasChange("labels") {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module github.com/civo/terraform-provider-civo

require (
github.com/civo/civogo v0.3.75
github.com/civo/civogo v0.3.79
github.com/google/uuid v1.3.1
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
github.com/hashicorp/terraform-plugin-sdk/v2 v2.31.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmms
github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA=
github.com/bufbuild/protocompile v0.4.0/go.mod h1:3v93+mbWn/v3xzN+31nwkJfrEpAUwp+BagBSZWx+TP8=
github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=
github.com/civo/civogo v0.3.75 h1:hrF+ALGDV5Be/jG9NmDo2wLhL4yuD8kIOxUbVRklGNU=
github.com/civo/civogo v0.3.75/go.mod h1:7UCYX+qeeJbrG55E1huv+0ySxcHTqq/26FcHLVelQJM=
github.com/civo/civogo v0.3.79 h1:Z1MbEG9CsGqSZV7UFBA0xsjk7TBGUPHjW9sM7cS5yZM=
github.com/civo/civogo v0.3.79/go.mod h1:7UCYX+qeeJbrG55E1huv+0ySxcHTqq/26FcHLVelQJM=
github.com/cloudflare/circl v1.3.3 h1:fE/Qz0QdIGqeWfnwq0RE0R7MI51s0M2E4Ga9kq5AEMs=
github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA=
github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg=
Expand Down

0 comments on commit f659161

Please sign in to comment.