mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-25 01:04:00 -04:00
builder/vmware: if no files to serve, don't start http server
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user