Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion datadog-cloudformation-common-python/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ package_dir=
include_package_data = True
python_requires = >=3.9
install_requires =
datadog-api-client==2.17.0
datadog-api-client==2.31.0
cloudformation-cli-python-lib==2.1.17
cryptography<40.0.0
setup_requires =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@contextmanager
def client(
api_key: str, app_key: str, api_url: str, resource_name: str, resource_version: str, datadog_config: dict = {}
api_key: str, app_key: str, api_url: str, resource_name: str, resource_version: str, datadog_config: dict = {}, unstable_operations: dict = {}
) -> ApiClient:
configuration = Configuration(
host=api_url or "https://api.datadoghq.com",
Expand All @@ -16,6 +16,8 @@ def client(
},
**datadog_config,
)
for key, value in unstable_operations.items():
configuration.unstable_operations[key] = value

with ApiClient(configuration) as api_client:
try:
Expand Down