From 56d5cf5834fe11086900982babc83a427cdde537 Mon Sep 17 00:00:00 2001 From: Nigel Magnay Date: Sat, 28 Jul 2012 16:40:18 +0100 Subject: [PATCH] If *not* empty, have IP, not other way around. Signed-off-by: Nigel Magnay --- .../src/main/java/org/jclouds/smartos/compute/domain/VM.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labs/smartos-ssh/src/main/java/org/jclouds/smartos/compute/domain/VM.java b/labs/smartos-ssh/src/main/java/org/jclouds/smartos/compute/domain/VM.java index 988fd230dd..3dac30de0e 100644 --- a/labs/smartos-ssh/src/main/java/org/jclouds/smartos/compute/domain/VM.java +++ b/labs/smartos-ssh/src/main/java/org/jclouds/smartos/compute/domain/VM.java @@ -138,7 +138,7 @@ public class VM { for (int i = 0; i < 30; i++) { ipAddresses = host.getVMIpAddresses(uuid); - if (ipAddresses.isEmpty()) { + if (!ipAddresses.isEmpty()) { // Got some String ip = ipAddresses.get("net0"); if (ip != null && !ip.equals("0.0.0.0"))