🎨 Fix typo in "copyed" -> "copied" usages.

This commit is contained in:
Joe Ferguson 2017-10-26 07:42:49 -05:00
parent abcc02dc64
commit 5c2f758053
3 changed files with 10 additions and 10 deletions

View File

@ -59,11 +59,11 @@ func (s *setpRegionCopyAlicloudImage) Cleanup(state multistep.StateBag) {
client := state.Get("client").(*ecs.Client) client := state.Get("client").(*ecs.Client)
alicloudImages := state.Get("alicloudimages").(map[string]string) alicloudImages := state.Get("alicloudimages").(map[string]string)
ui.Say(fmt.Sprintf("Stopping copy image because cancellation or error...")) ui.Say(fmt.Sprintf("Stopping copy image because cancellation or error..."))
for copyedRegionId, copyedImageId := range alicloudImages { for copiedRegionId, copiedImageId := range alicloudImages {
if copyedRegionId == s.RegionId { if copiedRegionId == s.RegionId {
continue continue
} }
if err := client.CancelCopyImage(common.Region(copyedRegionId), copyedImageId); err != nil { if err := client.CancelCopyImage(common.Region(copiedRegionId), copiedImageId); err != nil {
ui.Say(fmt.Sprintf("Error cancelling copy image: %v", err)) ui.Say(fmt.Sprintf("Error cancelling copy image: %v", err))
} }
} }

View File

@ -19,11 +19,11 @@ func (s *setpShareAlicloudImage) Run(state multistep.StateBag) multistep.StepAct
client := state.Get("client").(*ecs.Client) client := state.Get("client").(*ecs.Client)
ui := state.Get("ui").(packer.Ui) ui := state.Get("ui").(packer.Ui)
alicloudImages := state.Get("alicloudimages").(map[string]string) alicloudImages := state.Get("alicloudimages").(map[string]string)
for copyedRegion, copyedImageId := range alicloudImages { for copiedRegion, copiedImageId := range alicloudImages {
err := client.ModifyImageSharePermission( err := client.ModifyImageSharePermission(
&ecs.ModifyImageSharePermissionArgs{ &ecs.ModifyImageSharePermissionArgs{
RegionId: common.Region(copyedRegion), RegionId: common.Region(copiedRegion),
ImageId: copyedImageId, ImageId: copiedImageId,
AddAccount: s.AlicloudImageShareAccounts, AddAccount: s.AlicloudImageShareAccounts,
RemoveAccount: s.AlicloudImageUNShareAccounts, RemoveAccount: s.AlicloudImageUNShareAccounts,
}) })
@ -44,11 +44,11 @@ func (s *setpShareAlicloudImage) Cleanup(state multistep.StateBag) {
client := state.Get("client").(*ecs.Client) client := state.Get("client").(*ecs.Client)
alicloudImages := state.Get("alicloudimages").(map[string]string) alicloudImages := state.Get("alicloudimages").(map[string]string)
ui.Say("Restoring image share permission because cancellations or error...") ui.Say("Restoring image share permission because cancellations or error...")
for copyedRegion, copyedImageId := range alicloudImages { for copiedRegion, copiedImageId := range alicloudImages {
err := client.ModifyImageSharePermission( err := client.ModifyImageSharePermission(
&ecs.ModifyImageSharePermissionArgs{ &ecs.ModifyImageSharePermissionArgs{
RegionId: common.Region(copyedRegion), RegionId: common.Region(copiedRegion),
ImageId: copyedImageId, ImageId: copiedImageId,
AddAccount: s.AlicloudImageUNShareAccounts, AddAccount: s.AlicloudImageUNShareAccounts,
RemoveAccount: s.AlicloudImageShareAccounts, RemoveAccount: s.AlicloudImageShareAccounts,
}) })

View File

@ -68,7 +68,7 @@ func (p *HypervProvider) Process(ui packer.Ui, artifact packer.Artifact, dir str
} }
} }
ui.Message(fmt.Sprintf("Copyed %s to %s", path, dstPath)) ui.Message(fmt.Sprintf("Copied %s to %s", path, dstPath))
} }
return return