Skip to content

Commit

Permalink
Merge pull request #271 from HewlettPackard/update-instance-datatype
Browse files Browse the repository at this point in the history
Consume go-sdk v0.1.15 and update clone doc
  • Loading branch information
reubenur-rahman authored Nov 7, 2024
2 parents 7494108 + ff548b4 commit b5ca03b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
5 changes: 5 additions & 0 deletions examples/resources/hpegl_vmaas_instance_clone/minimal.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ resource "hpegl_vmaas_instance_clone" "minimal_instance" {
network {
id = data.hpegl_vmaas_network.blue_net.id
}
volume {
name = "root_vol"
size = 5
datastore_id = data.hpegl_vmaas_datastore.c_3par.id
}
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/HewlettPackard/hpegl-vmaas-terraform-resources
go 1.21

require (
github.com/HewlettPackard/hpegl-vmaas-cmp-go-sdk v0.1.14
github.com/HewlettPackard/hpegl-vmaas-cmp-go-sdk v0.1.16
github.com/golang/mock v1.6.0
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
github.com/hashicorp/terraform-plugin-docs v0.9.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk=
dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk=
github.com/HewlettPackard/hpegl-vmaas-cmp-go-sdk v0.1.14 h1:G3i8N70LBGo1tEFXCCBx5fd+cERBvnBCviFheVLlj80=
github.com/HewlettPackard/hpegl-vmaas-cmp-go-sdk v0.1.14/go.mod h1:tsKOAAbEQnpXAzqjcZUGzRiVp9QfRViKoTOdIltIMFI=
github.com/HewlettPackard/hpegl-vmaas-cmp-go-sdk v0.1.16 h1:AxP9A1zwr8L7kahiiKOBb1uPJ9RiG2bXXhqrJuIysO4=
github.com/HewlettPackard/hpegl-vmaas-cmp-go-sdk v0.1.16/go.mod h1:tsKOAAbEQnpXAzqjcZUGzRiVp9QfRViKoTOdIltIMFI=
github.com/Masterminds/goutils v1.1.0/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU=
github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI=
github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU=
Expand Down
9 changes: 5 additions & 4 deletions internal/resources/schemas/instance_schemas.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,11 @@ func GetInstanceContainerSchema() *schema.Schema {
},
},
},
"hostname": computedString(),
"max_storage": computedInt(),
"max_memory": computedInt(),
"max_cores": computedInt(),
"hostname": computedString(),
// Needed datatype is int64
// "max_storage": computedInt(),
// "max_memory": computedInt(),
"max_cores": computedInt(),
},
},
}
Expand Down
3 changes: 0 additions & 3 deletions templates/resources/vmaas_instance_clone.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ Cloned instance can have all the possible attributes (same as `hpegl_vmaas_insta

{{tffile "examples/resources/hpegl_vmaas_instance_clone/minimal.tf"}}

-> On cloning an instance, the parent volume will be appended to the child volume. If the child volume
name is the same as the parent volume name, the duplicate volume name is used.


## Example usage for creating cloned instance with all available attributes.

Expand Down

0 comments on commit b5ca03b

Please sign in to comment.