fix crash caused by invalid datacenter url
This commit is contained in:
parent
07b6bc0c4f
commit
8f1eb5a61b
|
@ -76,6 +76,7 @@ func (p *PostProcessor) Configure(raws ...interface{}) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errs = packer.MultiErrorAppend(
|
errs = packer.MultiErrorAppend(
|
||||||
errs, fmt.Errorf("Error invalid vSphere sdk endpoint: %s", err))
|
errs, fmt.Errorf("Error invalid vSphere sdk endpoint: %s", err))
|
||||||
|
return errs
|
||||||
}
|
}
|
||||||
|
|
||||||
sdk.User = url.UserPassword(p.config.Username, p.config.Password)
|
sdk.User = url.UserPassword(p.config.Username, p.config.Password)
|
||||||
|
|
Loading…
Reference in New Issue