Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spelling #59

Merged
merged 1 commit into from
May 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Requirements
- [Terraform](https://www.terraform.io/downloads.html) 1.0.x
- [Go](https://golang.org/doc/install) 1.16+ (to build the provider plugin)

Using the Provider from Terrafrom registry
Using the Provider from Terraform registry
------------------------------------------
To install the CloudStack provider, copy and paste the below code into your Terraform configuration. Then, run terraform init.
```sh
Expand Down Expand Up @@ -85,7 +85,7 @@ $ export CLOUDSTACK_API_KEY=r_gszj7e0ttr_C6CP5QU_1IV82EIOtK4o_K9i_AltVztfO68wpXi
$ export CLOUDSTACK_SECRET_KEY=tsfMDShFe94f4JkJfEh6_tZZ--w5jqEW7vGL2tkZGQgcdbnxNoq9fRmwAtU5MEGGXOrDlNA6tfvGK14fk_MB6w
```

In order for all the tests to pass, you will need to create a new (empty) project in the UI called `terraform`. When the project is created you can run the Acceptance tests against the CloudStack Simulator by simply runnning:
In order for all the tests to pass, you will need to create a new (empty) project in the UI called `terraform`. When the project is created you can run the Acceptance tests against the CloudStack Simulator by simply running:

```sh
$ make testacc
Expand Down
2 changes: 1 addition & 1 deletion cloudstack/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func getMetadata(cs *cloudstack.CloudStackClient, d *schema.ResourceData, resour
if err != nil {
return nil, err
}
// Only return metadata values that were explicitely set
// Only return metadata values that were explicitly set
var existingFilter map[string]interface{}
if metadata, ok := d.GetOk("metadata"); ok {
existingFilter = metadata.(map[string]interface{})
Expand Down
4 changes: 2 additions & 2 deletions cloudstack/resource_cloudstack_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ func resourceCloudStackInstanceRead(d *schema.ResourceData, meta interface{}) er
d.Set("display_name", vm.Displayname)
d.Set("group", vm.Group)

// In some rare cases (when destroying a machine failes) it can happen that
// In some rare cases (when destroying a machine fails) it can happen that
// an instance does not have any attached NIC anymore.
if len(vm.Nic) > 0 {
d.Set("network_id", vm.Nic[0].Networkid)
Expand Down Expand Up @@ -675,7 +675,7 @@ func getUserData(userData string, httpGetOnly bool) (string, error) {
if len(ud) > maxUD {
return "", fmt.Errorf(
"The supplied user_data contains %d bytes after encoding, "+
"this exeeds the limit of %d bytes", len(ud), maxUD)
"this exceeds the limit of %d bytes", len(ud), maxUD)
}

return ud, nil
Expand Down
2 changes: 1 addition & 1 deletion cloudstack/resource_cloudstack_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func resourceCloudStackNetworkCreate(d *schema.ResourceData, meta interface{}) e
// Set the vpc id
p.SetVpcid(vpcid.(string))

// Since we're in a VPC, check if we want to assiciate an ACL list
// Since we're in a VPC, check if we want to associate an ACL list
if aclid, ok := d.GetOk("acl_id"); ok && aclid.(string) != none {
// Set the acl ID
p.SetAclid(aclid.(string))
Expand Down
4 changes: 2 additions & 2 deletions cloudstack/resource_cloudstack_network_offering.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ func resourceCloudStackNetworkOfferingUpdate(d *schema.ResourceData, meta interf
// Create a new parameter struct
p := cs.NetworkOffering.NewUpdateNetworkOfferingParams()

// Set the new uest ip type
// Set the new guest ip type
p.SetName(d.Get("guest_ip_type").(string))

// Update the uest ip type
// Update the guest ip type
_, err := cs.NetworkOffering.UpdateNetworkOffering(p)
if err != nil {
return fmt.Errorf(
Expand Down
4 changes: 2 additions & 2 deletions website/docs/d/instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: "cloudstack"
page_title: "Cloudstack: cloudstack_instance"
sidebar_current: "docs-cloudstack-datasource-instance"
description: |-
Gets informations about cloudstack instance.
Gets information about cloudstack instance.
---

# cloudstack_instance
Expand Down Expand Up @@ -37,6 +37,6 @@ The following attributes are exported:
* `display_name` - The user generated name. The name of the virtual machine is returned if no displayname exists.
* `state` - The state of the virtual machine.
* `host_id` - The ID of the host for the virtual machine.
* `zone_id` - The ID of the availablility zone for the virtual machine.
* `zone_id` - The ID of the availability zone for the virtual machine.
* `created` - The date when this virtual machine was created.
* `nic` - The list of nics associated with vm.