diff --git a/builder/alicloud/ecs/step_check_source_image.go b/builder/alicloud/ecs/step_check_source_image.go index 073d84b12..541bd19eb 100644 --- a/builder/alicloud/ecs/step_check_source_image.go +++ b/builder/alicloud/ecs/step_check_source_image.go @@ -28,7 +28,7 @@ func (s *stepCheckAlicloudSourceImage) Run(ctx context.Context, state multistep. images := imagesResponse.Images.Image - // Describe markerplace image + // Describe marketplace image describeImagesRequest.ImageOwnerAlias = "marketplace" marketImagesResponse, err := client.DescribeImages(describeImagesRequest) if err != nil { diff --git a/builder/amazon/common/access_config.go b/builder/amazon/common/access_config.go index adf0e053e..a21f52211 100644 --- a/builder/amazon/common/access_config.go +++ b/builder/amazon/common/access_config.go @@ -178,7 +178,7 @@ func (c *AccessConfig) Prepare(ctx *interpolate.Context) []error { } // Make sure it's obvious from the config how we're getting credentials: - // Vault, Packer config, or environemnt. + // Vault, Packer config, or environment. if !c.VaultAWSEngine.Empty() { if len(c.AccessKey) > 0 { errs = append(errs, diff --git a/builder/amazon/common/state.go b/builder/amazon/common/state.go index 4064d4020..fc6e10027 100644 --- a/builder/amazon/common/state.go +++ b/builder/amazon/common/state.go @@ -35,7 +35,7 @@ type StateChangeConf struct { } // Following are wrapper functions that use Packer's environment-variables to -// determing retry logic, then call the AWS SDK's built-in waiters. +// determine retry logic, then call the AWS SDK's built-in waiters. func WaitUntilAMIAvailable(ctx aws.Context, conn ec2iface.EC2API, imageId string) error { imageInput := ec2.DescribeImagesInput{ diff --git a/builder/azure/arm/builder_acc_test.go b/builder/azure/arm/builder_acc_test.go index 124ee939e..57e48a4cb 100644 --- a/builder/azure/arm/builder_acc_test.go +++ b/builder/azure/arm/builder_acc_test.go @@ -11,7 +11,7 @@ package arm // // The subscription in question should have a resource group // called "packer-acceptance-test" in "South Central US" region. The -// storage account refered to in the above variable should +// storage account referred to in the above variable should // be inside this resource group and in "South Central US" as well. // // In addition, the PACKER_ACC variable should also be set to diff --git a/builder/azure/arm/step_delete_resource_group.go b/builder/azure/arm/step_delete_resource_group.go index ee8e2a08e..8e873c2d7 100644 --- a/builder/azure/arm/step_delete_resource_group.go +++ b/builder/azure/arm/step_delete_resource_group.go @@ -56,7 +56,7 @@ func (s *StepDeleteResourceGroup) deleteResourceGroup(ctx context.Context, state f, err := s.client.GroupsClient.Delete(ctx, resourceGroupName) if err == nil { if state.Get(constants.ArmAsyncResourceGroupDelete).(bool) { - // No need to wait for the complition for delete if request is Accepted + // No need to wait for the completion for delete if request is Accepted s.say(fmt.Sprintf("\nResource Group is being deleted, not waiting for deletion due to config. Resource Group Name '%s'", resourceGroupName)) } else { f.WaitForCompletionRef(ctx, s.client.GroupsClient.Client) diff --git a/common/shell-local/config.go b/common/shell-local/config.go index d9c9408b4..ea9911469 100644 --- a/common/shell-local/config.go +++ b/common/shell-local/config.go @@ -18,7 +18,7 @@ type Config struct { common.PackerConfig `mapstructure:",squash"` // ** DEPRECATED: USE INLINE INSTEAD ** - // ** Only Present for backwards compatibiltiy ** + // ** Only Present for backwards compatibility ** // Command is the command to execute Command string diff --git a/packer/hook.go b/packer/hook.go index ea77cafd8..67074aa7d 100644 --- a/packer/hook.go +++ b/packer/hook.go @@ -16,7 +16,7 @@ const HookProvision = "packer_provision" // in. In addition to that, the Hook is given access to a UI so that it can // output things to the user. // -// The first context argument controlls cancellation, the context will usually +// The first context argument controls cancellation, the context will usually // be called when Run is still in progress so the mechanism that handles this // must be race-free. Cancel should attempt to cancel the hook in the quickest, // safest way possible.