mirror of https://github.com/apache/jclouds.git
.indexOf() -> .contains()
This commit is contained in:
parent
4535f92c51
commit
79c32c22e2
|
@ -56,7 +56,7 @@ public class AttachDistroMediumToMachine implements Function<IMachine, Void> {
|
|||
}
|
||||
|
||||
private boolean alreadyAttached(VBoxException e) {
|
||||
return e.getMessage().indexOf("is already attached to port") != -1;
|
||||
return e.getMessage().contains("is already attached to port");
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue