Skip to content

Commit

Permalink
Fix API call in Remote configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
vduseev committed Dec 12, 2024
1 parent 891dd39 commit 5bed444
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions dynatrace/environment_v2/remote_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit 5bed444

Please sign in to comment.