From 7c3eb33cda7bf3db54f8abb03b1cadd4a223fa40 Mon Sep 17 00:00:00 2001 From: Luke Farnell Date: Mon, 7 Aug 2017 13:45:50 -0400 Subject: [PATCH] Fixed spelling mistakes --- builder/alicloud/ecs/step_config_vswitch.go | 2 +- builder/digitalocean/step_snapshot.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builder/alicloud/ecs/step_config_vswitch.go b/builder/alicloud/ecs/step_config_vswitch.go index 734647e07..dfa858d0b 100644 --- a/builder/alicloud/ecs/step_config_vswitch.go +++ b/builder/alicloud/ecs/step_config_vswitch.go @@ -113,7 +113,7 @@ func (s *stepConfigAlicloudVSwitch) Run(state multistep.StateBag) multistep.Step } if err := client.WaitForVSwitchAvailable(vpcId, s.VSwitchId, ALICLOUD_DEFAULT_TIMEOUT); err != nil { state.Put("error", err) - ui.Error(fmt.Sprintf("Timeout waiting for vswitch to become avaiable: %v", err)) + ui.Error(fmt.Sprintf("Timeout waiting for vswitch to become available: %v", err)) return multistep.ActionHalt } state.Put("vswitchid", vswitchId) diff --git a/builder/digitalocean/step_snapshot.go b/builder/digitalocean/step_snapshot.go index bd5298137..eb91fdead 100644 --- a/builder/digitalocean/step_snapshot.go +++ b/builder/digitalocean/step_snapshot.go @@ -85,12 +85,12 @@ func (s *stepSnapshot) Run(state multistep.StateBag) multistep.StepAction { } imageTransfer, _, err := client.ImageActions.Transfer(context.TODO(), images[0].ID, transferRequest) if err != nil { - err := fmt.Errorf("Error transfering snapshot: %s", err) + err := fmt.Errorf("Error transferring snapshot: %s", err) state.Put("error", err) ui.Error(err.Error()) return multistep.ActionHalt } - ui.Say(fmt.Sprintf("Transfering Snapshot ID: %d", imageTransfer.ID)) + ui.Say(fmt.Sprintf("transferring Snapshot ID: %d", imageTransfer.ID)) if err := waitForImageState(godo.ActionCompleted, imageTransfer.ID, action.ID, client, 20*time.Minute); err != nil { // If we get an error the first time, actually report it