From 8f1eb5a61b04371ba21aa0822eb2b294d5c5b834 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Mon, 23 Jul 2018 16:12:21 -0700 Subject: [PATCH] fix crash caused by invalid datacenter url --- post-processor/vsphere-template/post-processor.go | 1 + 1 file changed, 1 insertion(+) diff --git a/post-processor/vsphere-template/post-processor.go b/post-processor/vsphere-template/post-processor.go index bba5e33ea..deed5c2d7 100644 --- a/post-processor/vsphere-template/post-processor.go +++ b/post-processor/vsphere-template/post-processor.go @@ -76,6 +76,7 @@ func (p *PostProcessor) Configure(raws ...interface{}) error { if err != nil { errs = packer.MultiErrorAppend( errs, fmt.Errorf("Error invalid vSphere sdk endpoint: %s", err)) + return errs } sdk.User = url.UserPassword(p.config.Username, p.config.Password)