aws-lightsail-instance/src/main/java/software/amazon/lightsail/instance/helpers/resource/AddOns.java [173:183]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public boolean isSafeExceptionCreateOrUpdate(Exception e) {
        if (e instanceof AwsServiceException) {
            val exp = (AwsServiceException) e;
            if (exp.awsErrorDetails().errorMessage().contains("The addOn is already in requested state")
                    || exp.awsErrorDetails().errorMessage().contains("AutoSnapshot not enabled for the resource")) {
                logger.log("This error is expected at this stage. Continuing execution.");
                return true;
            }
        }
        return false;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



aws-lightsail-disk/src/main/java/software/amazon/lightsail/disk/helpers/resource/AddOns.java [178:188]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public boolean isSafeExceptionCreateOrUpdate(Exception e) {
        if (e instanceof AwsServiceException) {
            val exp = (AwsServiceException) e;
            if (exp.awsErrorDetails().errorMessage().contains("The addOn is already in requested state")
                    || exp.awsErrorDetails().errorMessage().contains("AutoSnapshot not enabled for the resource")) {
                logger.log("This error is expected at this stage. Continuing execution.");
                return true;
            }
        }
        return false;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



