Skip to content

Commit

Permalink
fix extension upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Dynatrace-James-Kitson committed Nov 1, 2024
1 parent fdd2a52 commit ea97b68
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 ea97b68

Please sign in to comment.