diff --git a/civo/resource_instance.go b/civo/resource_instance.go index feef7977..96537594 100644 --- a/civo/resource_instance.go +++ b/civo/resource_instance.go @@ -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", @@ -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) } diff --git a/docs/resources/instance.md b/docs/resources/instance.md index 635f1061..efab0a03 100644 --- a/docs/resources/instance.md +++ b/docs/resources/instance.md @@ -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). diff --git a/go.mod b/go.mod index 2bf20065..2f81a6ef 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index 7aa4391a..80e5d531 100644 --- a/go.sum +++ b/go.sum @@ -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=