builder/vmware: if no files to serve, don't start http server

This commit is contained in:
Mitchell Hashimoto 2013-06-07 15:50:54 -07:00
parent 4ed76751de
commit d3ea7956bc

View File

@ -30,6 +30,7 @@ func (s *stepHTTPServer) Run(state map[string]interface{}) multistep.StepAction
var httpPort uint = 0
if config.HTTPDir == "" {
state["http_port"] = httpPort
return multistep.ActionContinue
}
// Find an available TCP port for our HTTP server