Commit 3a999e7 changed the return values for the Script.execute function, this introduced a bug in the openvswitch bridge detection code.

Hugo fixed it in master by commit c024a9382 and 725bed43b
This commit is contained in:
Wei Zhou 2014-01-03 09:10:44 +01:00
parent 34126362f1
commit 79f609ca19
2 changed files with 2 additions and 2 deletions

View File

@ -1092,7 +1092,7 @@ ServerResource {
command.add("-c");
command.add("ovs-vsctl br-exists " + networkName);
String result = command.execute(null);
if ("Ok".equals(result)) {
if ("0".equals(result)) {
return true;
} else {
return false;

View File

@ -178,7 +178,7 @@ public class OvsVifDriver extends VifDriverBase {
command.add("-c");
command.add("ovs-vsctl br-exists " + bridgeName);
String result = command.execute(null);
if ("Ok".equals(result)) {
if ("0".equals(result)) {
return true;
} else {
return false;