Boolean expression simplification

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
This commit is contained in:
Laszlo Hornyak 2014-02-09 19:19:20 +01:00
parent d6a6e8dfa5
commit 55b6b6d50b
1 changed files with 1 additions and 6 deletions

View File

@ -1156,12 +1156,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
Script command = new Script("/bin/sh", _timeout);
command.add("-c");
command.add("ovs-vsctl br-exists " + networkName);
String result = command.execute(null);
if ("0".equals(result)) {
return true;
} else {
return false;
}
return "0".equals(command.execute(null));
}
private boolean passCmdLine(String vmName, String cmdLine) throws InternalErrorException {