builder/vmware: if no files to serve, don't start http server
This commit is contained in:
parent
4ed76751de
commit
d3ea7956bc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user