Merge pull request #6529 from hashicorp/fix_6527

fix crash caused by invalid datacenter url
This commit is contained in:
Megan Marsh 2018-07-24 16:02:37 -07:00 committed by GitHub
commit c8970b86eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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