mirror of
https://github.com/apache/jclouds.git
synced 2025-02-28 05:19:07 +00:00
Correct equals with incompatible types
Found via error-prone.
This commit is contained in:
parent
66cda12b50
commit
6446627aad
@ -357,7 +357,7 @@ public class EBSBootEC2ApiLiveTest extends BaseComputeServiceContextLiveTest {
|
||||
imageIds(amiId)));
|
||||
} catch (AWSResponseException e) {
|
||||
// TODO add a retry handler for this HTTP code 400 and the below error
|
||||
if (e.getError().getClass().equals("InvalidAMIID.NotFound"))
|
||||
if (e.getError().getCode().equals("InvalidAMIID.NotFound"))
|
||||
ebsImage = Iterables.getOnlyElement(client.getAMIApi().get().describeImagesInRegion(snapshot.getRegion(),
|
||||
imageIds(amiId)));
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user