From 004c1d8fd5b9032f586e19f30c02de576acac80b Mon Sep 17 00:00:00 2001 From: erikzaadi Date: Tue, 14 Jan 2025 11:43:41 +0200 Subject: [PATCH] [PR-FIX] Unify provision param name and value --- port_ocean/clients/port/mixins/integrations.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/port_ocean/clients/port/mixins/integrations.py b/port_ocean/clients/port/mixins/integrations.py index 2b90fd1b62..8289ccd453 100644 --- a/port_ocean/clients/port/mixins/integrations.py +++ b/port_ocean/clients/port/mixins/integrations.py @@ -16,6 +16,8 @@ INTEGRATION_POLLING_INTERVAL_INITIAL_SECONDS = 5 INTEGRATION_POLLING_INTERVAL_BACKOFF_FACTOR = 1.5 INTEGRATION_POLLING_RETRY_LIMIT = 30 +CREATE_RESOURCES_PARAM_NAME = "integration_modes" +CREATE_RESOURCES_PARAM_VALUE = ["create_resources"] class LogAttributes(TypedDict): @@ -104,7 +106,7 @@ async def create_integration( query_params = {} if use_provisioned_defaults: - query_params["provision_enabled"] = use_provisioned_defaults + query_params[CREATE_RESOURCES_PARAM_NAME] = CREATE_RESOURCES_PARAM_VALUE if port_app_config and not use_provisioned_defaults: json["config"] = port_app_config.to_request()