Fix bad copy-paste from refactoring

This commit is contained in:
Clint Shryock 2015-09-25 08:36:46 -05:00
parent 0ac8fa4a23
commit f1ede2f555
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ func (d *QemuDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle,
// the outside world to be able to reach it. VMs ran without port mappings can
// still reach out to the world, but without port mappings it is effectively
// firewalled
if len(task.Resources.Networks) == 0 {
if len(task.Resources.Networks) > 0 {
// TODO: Consolidate these into map of host/guest port when we have HCL
// Note: Host port must be open and available
// Get and split guest ports. The guest_ports configuration must match up with