mirror of https://github.com/apache/cloudstack.git
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 commitc024a9382and725bed43b
This commit is contained in:
parent
34126362f1
commit
79f609ca19
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue