From 7bc0f17ce537b030e5c5617e6c9c7219c7ed549f Mon Sep 17 00:00:00 2001 From: zhuzhih2017 Date: Fri, 2 Jun 2017 11:37:16 +0800 Subject: [PATCH] fix the wrong number args in step_create_instance --- builder/alicloud/ecs/step_create_instance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/alicloud/ecs/step_create_instance.go b/builder/alicloud/ecs/step_create_instance.go index 0b8f85e4c..c4f33f19c 100644 --- a/builder/alicloud/ecs/step_create_instance.go +++ b/builder/alicloud/ecs/step_create_instance.go @@ -127,7 +127,7 @@ func (s *stepCreateAlicloudInstance) Cleanup(state multistep.StateBag) { ui := state.Get("ui").(packer.Ui) err := client.DeleteInstance(s.instance.InstanceId) if err != nil { - ui.Say(fmt.Sprintf("Failed to clean up instance %s: ", s.instance.InstanceId, err.Error())) + ui.Say(fmt.Sprintf("Failed to clean up instance %s: %v", s.instance.InstanceId, err.Error())) } }