From e48cea7850f5db5f91491993deb34db671e64963 Mon Sep 17 00:00:00 2001 From: "Pedro S. Lopez" Date: Wed, 26 Jul 2023 13:16:19 -0400 Subject: [PATCH] rename method --- airbyte-ci/connectors/pipelines/pipelines/publish.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airbyte-ci/connectors/pipelines/pipelines/publish.py b/airbyte-ci/connectors/pipelines/pipelines/publish.py index eb335053e16a..a7ad9ae75afb 100644 --- a/airbyte-ci/connectors/pipelines/pipelines/publish.py +++ b/airbyte-ci/connectors/pipelines/pipelines/publish.py @@ -309,8 +309,8 @@ def reorder_contexts(contexts: List[PublishConnectorContext]) -> List[PublishCon As strict-encrypt variant are often modified in the same PR as the non strict-encrypt variant, we want to publish them first. """ - def has_secure_variant(context: PublishConnectorContext) -> bool: + def is_secure_variant(context: PublishConnectorContext) -> bool: SECURE_VARIANT_KEYS = ["secure", "strict-encrypt"] return any(key in context.connector.technical_name for key in SECURE_VARIANT_KEYS) - return sorted(contexts, key=lambda context: (has_secure_variant(context), context.connector.technical_name), reverse=True) + return sorted(contexts, key=lambda context: (is_secure_variant(context), context.connector.technical_name), reverse=True)