Skip to content

Commit

Permalink
Updated the civogo lib to v0.2.19
Browse files Browse the repository at this point in the history
Fixed error in typo in the instance resource

Signed-off-by: Alejandro JNM <alejandrojnm@gmail.com>
  • Loading branch information
alejandrojnm committed Sep 25, 2020
1 parent d5a033a commit 3068faf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions civo/resource_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func resourceInstance() *schema.Resource {
Default: "g2.xsmall",
Description: "The name of the size, from the current list, e.g. g2.small (required)",
},
"public_ip_requiered": {
"public_ip_required": {
Type: schema.TypeString,
Optional: true,
Default: "create",
Expand Down Expand Up @@ -154,7 +154,7 @@ func resourceInstanceCreate(d *schema.ResourceData, m interface{}) error {
config.Size = attr.(string)
}

if attr, ok := d.GetOk("public_ip_requiered"); ok {
if attr, ok := d.GetOk("public_ip_required"); ok {
config.PublicIPRequired = attr.(string)
}

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The following arguments are supported:
* `hostname` - (Required) The Instance hostname.
* `reverse_dns` - (Optional) A fully qualified domain name that should be used as the instance's IP's reverse DNS (optional, uses the hostname if unspecified).
* `size` - (Optional) The name of the size, from the current list, e.g. g2.small (required).
* `public_ip_requiered` - (Optional) This should be either false, true or `move_ip_from:intances_id`.
* `public_ip_required` - (Optional) This should be either false, true or `move_ip_from:intances_id`.
* `network_id` - (Optional) This must be the ID of the network from the network listing (optional; default network used when not specified).
* `template` - (Optional) The ID for the template to use to build the instance.
* `initial_user` - (Optional) The name of the initial user created on the server (optional; this will default to the template's default_username and fallback to civo).
Expand Down
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/civo/terraform-provider-civo
require (
cloud.google.com/go v0.54.0 // indirect
github.com/aws/aws-sdk-go v1.29.22 // indirect
github.com/civo/civogo v0.2.18
github.com/civo/civogo v0.2.19
github.com/fatih/color v1.9.0 // indirect
github.com/gorhill/cronexpr v0.0.0-20180427100037-88b0669f7d75
github.com/hashicorp/go-getter v1.4.1 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5P
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
github.com/civo/civogo v0.2.18 h1:+EKu2Tj7zoe8That9fyqTK6Monm/YQEaMf548JCZSpc=
github.com/civo/civogo v0.2.18/go.mod h1:SR0ZOhABfQHjgNQE3UyfX4gaYsrfslkPFRFMx5P29rg=
github.com/civo/civogo v0.2.19 h1:WojOXLpuN/jFLffe8qyp5VR68wx/RWlYybDW3ddVdNk=
github.com/civo/civogo v0.2.19/go.mod h1:SR0ZOhABfQHjgNQE3UyfX4gaYsrfslkPFRFMx5P29rg=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand Down

0 comments on commit 3068faf

Please sign in to comment.