From 5bed4441f3b885faf355a143d0f32834a006c934 Mon Sep 17 00:00:00 2001 From: Vagiz Duseev Date: Thu, 12 Dec 2024 15:40:23 +0100 Subject: [PATCH] Fix API call in Remote configuration --- dynatrace/environment_v2/remote_configuration.py | 8 ++++---- setup.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dynatrace/environment_v2/remote_configuration.py b/dynatrace/environment_v2/remote_configuration.py index 65b2b21..c37804b 100644 --- a/dynatrace/environment_v2/remote_configuration.py +++ b/dynatrace/environment_v2/remote_configuration.py @@ -56,7 +56,7 @@ def post(self, entities: List[str], operations: List["RemoteConfigurationManagem response = self.__http_client.make_request( self.ENDPOINT, method="POST", - data=payload.to_json() + params=payload.to_json() ).json() return RemoteConfigurationManagementJob(raw_element=response) @@ -97,7 +97,7 @@ def validate(self, entities: List[str], operations: List["RemoteConfigurationMan response = self.__http_client.make_request( f"{self.ENDPOINT}/validator", method="POST", - data=payload.to_json() + params=payload.to_json() ) if not response.content: return None @@ -148,7 +148,7 @@ def post(self, entities: List[str], operations: List["RemoteConfigurationManagem response = self.__http_client.make_request( self.ENDPOINT, method="POST", - data=payload.to_json() + params=payload.to_json() ).json() return RemoteConfigurationManagementJob(raw_element=response) @@ -189,7 +189,7 @@ def validate(self, entities: List[str], operations: List["RemoteConfigurationMan response = self.__http_client.make_request( f"{self.ENDPOINT}/validator", method="POST", - data=payload.to_json() + params=payload.to_json() ) if not response.content: return None diff --git a/setup.py b/setup.py index 497742d..fd93743 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="dt", - version="1.1.70", + version="1.1.71", packages=find_packages(include=["dynatrace*"]), install_requires=["requests>=2.22"], tests_require=["pytest", "mock", "tox"],