Skip to content

Commit

Permalink
[PR-FIX] Unify provision param name and value
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzaadi committed Jan 16, 2025
1 parent fbfcf6c commit 004c1d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion port_ocean/clients/port/mixins/integrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 004c1d8

Please sign in to comment.