Skip to content

Commit

Permalink
Merge pull request #94 from Dynatrace-James-Kitson/kitson
Browse files Browse the repository at this point in the history
fix extension upload
  • Loading branch information
Dynatrace-James-Kitson authored Nov 1, 2024
2 parents b5307f1 + ea97b68 commit 0574017
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dynatrace/environment_v2/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ def post(self, zip_file_path: Union[str, Path], validate_only: Optional[bool] =
file = Path(zip_file_path)
with open(file, "rb") as f:
response = self.__http_client.make_request(f"{self.ENDPOINT}",
params=params,
query_params=params,
headers={"Content-Type": "application/octet-stream"},
method="POST",
files={"file": f}).json()
return Extension(raw_element=response)
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.66",
version="1.1.67",
packages=find_packages(),
install_requires=["requests>=2.22"],
tests_require=["pytest", "mock", "tox"],
Expand Down

0 comments on commit 0574017

Please sign in to comment.