fix the wrong number args in step_create_instance

This commit is contained in:
zhuzhih2017 2017-06-02 11:37:16 +08:00
parent b9eee0805e
commit 7bc0f17ce5
1 changed files with 1 additions and 1 deletions

View File

@ -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()))
}
}