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

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 // 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 // still reach out to the world, but without port mappings it is effectively
// firewalled // 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 // TODO: Consolidate these into map of host/guest port when we have HCL
// Note: Host port must be open and available // Note: Host port must be open and available
// Get and split guest ports. The guest_ports configuration must match up with // Get and split guest ports. The guest_ports configuration must match up with