Skip to content

Commit 63149fb

Browse files
authored
Merge pull request #104 from vduseev/main
Fix API call in Remote configuration
2 parents 891dd39 + 5bed444 commit 63149fb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: dynatrace/environment_v2/remote_configuration.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def post(self, entities: List[str], operations: List["RemoteConfigurationManagem
5656
response = self.__http_client.make_request(
5757
self.ENDPOINT,
5858
method="POST",
59-
data=payload.to_json()
59+
params=payload.to_json()
6060
).json()
6161
return RemoteConfigurationManagementJob(raw_element=response)
6262

@@ -97,7 +97,7 @@ def validate(self, entities: List[str], operations: List["RemoteConfigurationMan
9797
response = self.__http_client.make_request(
9898
f"{self.ENDPOINT}/validator",
9999
method="POST",
100-
data=payload.to_json()
100+
params=payload.to_json()
101101
)
102102
if not response.content:
103103
return None
@@ -148,7 +148,7 @@ def post(self, entities: List[str], operations: List["RemoteConfigurationManagem
148148
response = self.__http_client.make_request(
149149
self.ENDPOINT,
150150
method="POST",
151-
data=payload.to_json()
151+
params=payload.to_json()
152152
).json()
153153
return RemoteConfigurationManagementJob(raw_element=response)
154154

@@ -189,7 +189,7 @@ def validate(self, entities: List[str], operations: List["RemoteConfigurationMan
189189
response = self.__http_client.make_request(
190190
f"{self.ENDPOINT}/validator",
191191
method="POST",
192-
data=payload.to_json()
192+
params=payload.to_json()
193193
)
194194
if not response.content:
195195
return None

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name="dt",
5-
version="1.1.70",
5+
version="1.1.71",
66
packages=find_packages(include=["dynatrace*"]),
77
install_requires=["requests>=2.22"],
88
tests_require=["pytest", "mock", "tox"],

0 commit comments

Comments
 (0)