From f1ede2f55505a1eadd1740426ea3b0f47605ec2f Mon Sep 17 00:00:00 2001 From: Clint Shryock Date: Fri, 25 Sep 2015 08:36:46 -0500 Subject: [PATCH] Fix bad copy-paste from refactoring --- client/driver/qemu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/driver/qemu.go b/client/driver/qemu.go index 50fc73477..31d8fbea8 100644 --- a/client/driver/qemu.go +++ b/client/driver/qemu.go @@ -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