src/main/java/com/awslabs/aws/greengrass/provisioner/implementations/helpers/BasicGreengrassHelper.java
protected boolean shouldRedeploy(GetDeploymentStatusResponse getDeploymentStatusResponse, List<String> expectedPartialErrorStrings, String logMessage) {
        String errorMessage = getDeploymentStatusResponse.errorMessage();

        if (!expectedPartialErrorStrings.stream().allMatch(errorMessage::contains)) {
            // Didn't find one or more of the required matches, this is not a match
            return false;
        }

        // Yes, this is the error we expected
        log.error(logMessage);

        return true;
    }
/**
     * Checks to see if a deployment status error message matches all of the expected partial strings passed in
     *
     * @param getDeploymentStatusResponse
     * @param expectedPartialErrorStrings
     * @param logMessage
     * @return true if all expected strings are found, false if one or more expected strings are not found
     */
Checks to see if a deployment status error message matches all of the expected partial strings passed in
@param getDeploymentStatusResponse
@param expectedPartialErrorStrings
@param logMessage
@return true if all expected strings are found, false if one or more expected strings are not found
Checks to see if a deployment status error message matches all of the expected partial strings passed in @param getDeploymentStatusResponse @param expectedPartialErrorStrings @param logMessage @return true if all expected strings are found false if one or more expected strings are not found
protected boolean shouldRedeploy(GetDeploymentStatusResponse getDeploymentStatusResponse, List<String> expectedPartialErrorStrings, String logMessage) {
        String errorMessage = getDeploymentStatusResponse.errorMessage();
        if (!expectedPartialErrorStrings.stream().allMatch(errorMessage::contains)) {
            return false;
        }
        log.error(logMessage);
        return true;
    }
protected boolean shouldRedeploy ( GetDeploymentStatusResponse getDeploymentStatusResponse , List < String > expectedPartialErrorStrings , String logMessage ) { String errorMessage = getDeploymentStatusResponse . errorMessage ( ) ; if ( ! expectedPartialErrorStrings . stream ( ) . allMatch ( errorMessage :: contains ) ) { return false ; } log . error ( logMessage ) ; return true ; }
Checks to see if a deployment status error message matches all of the expected partial strings passed in
 @param getDeploymentStatusResponse
 @param expectedPartialErrorStrings
 @param logMessage
 @return true if all expected strings are found, false if one or more expected strings are not found
Checks to see if a deployment status error message matches all of the expected partial strings passed in @param getDeploymentStatusResponse @param expectedPartialErrorStrings @param logMessage @return true if all expected strings are found false if one or more expected strings are not found
// Didn't find one or more of the required matches, this is not a match // Yes, this is the error we expected