(check)
Return an accessor class based on the check or manifest_version provided
        Return None for known non-valid checks and
        abort for any non-known invalid manifests
Return an accessor class based on the check or manifest_version provided
        Return None for known non-valid checks and
        abort for any non-known invalid manifests
Return an accessor class based on the check or manifest_version provided Return None for known non - valid checks and abort for any non - known invalid manifests
def load_manifest(check):
        """
        Return an accessor class based on the check or manifest_version provided
        Return None for known non-valid checks and
        abort for any non-known invalid manifests
        """
        if check in NON_INTEGRATION_PATHS:
            return None

        raw_manifest_json = load_manifest(check)
        manifest_version = raw_manifest_json.get("manifest_version")

        if check == 'agent':
            return Agent(check, {})
        if manifest_version == "1.0.0":
            return ManifestV1(check, raw_manifest_json)
        elif manifest_version == "2.0.0":
            return ManifestV2(check, raw_manifest_json)
        else:
            abort(f"Unsupported check: {check} or manifest_version: {manifest_version}")
def load_manifest ( check ) : if check in NON_INTEGRATION_PATHS : return None raw_manifest_json = load_manifest ( check ) manifest_version = raw_manifest_json . get ( "manifest_version" ) if check == 'agent' : return Agent ( check , { } ) if manifest_version == "1.0.0" : return ManifestV1 ( check , raw_manifest_json ) elif manifest_version == "2.0.0" : return ManifestV2 ( check , raw_manifest_json ) else : abort ( f"Unsupported check: {check} or manifest_version: {manifest_version}" )