mirror of https://github.com/apache/jclouds.git
.contains() instead of .indexOf()
This commit is contained in:
parent
66a42c372c
commit
a006d63b44
|
@ -64,7 +64,7 @@ public class CreateAndRegisterMachineFromIsoIfNotAlreadyExists implements Functi
|
|||
}
|
||||
|
||||
private boolean machineNotFoundException(VBoxException e) {
|
||||
return e.getMessage().indexOf("VirtualBox error: Could not find a registered machine named ") != -1;
|
||||
return e.getMessage().contains("VirtualBox error: Could not find a registered machine named ");
|
||||
}
|
||||
|
||||
private IMachine createMachine(IVirtualBox vBox, String vmName) {
|
||||
|
|
Loading…
Reference in New Issue