Skip to content

Commit

Permalink
fix(provider/aws): Correctly handle AmazonAutoScalingExceptions (#2404)
Browse files Browse the repository at this point in the history
  • Loading branch information
robzienert committed Mar 2, 2018
1 parent 3d46375 commit 2621ee2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ protected boolean hasLaunchFailures(AmazonAutoScaling amazonAutoScaling, EntityT
}

private static AmazonServiceException amazonServiceException(Exception e) {
if (e instanceof AmazonServiceException) {
return (AmazonServiceException) e;
}

if (!(e instanceof UndeclaredThrowableException)) {
return null;
}
Expand Down

0 comments on commit 2621ee2

Please sign in to comment.