If *not* empty, have IP, not other way around.

Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>
This commit is contained in:
Nigel Magnay 2012-07-28 16:40:18 +01:00
parent 986f92d0a4
commit 56d5cf5834
1 changed files with 1 additions and 1 deletions

View File

@ -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"))