Skip to content

Commit

Permalink
fixing the update
Browse files Browse the repository at this point in the history
  • Loading branch information
bcdurak committed Oct 22, 2024
2 parents 48fd128 + a2c4272 commit ac3d22a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/redeploy-release-prep-tenant.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,18 @@ def update_tenant(token: str, tenant_id: str, new_version: str) -> None:

data = {
"zenml_service": {
"admin": {
"image_repository": "dockerhub/prepare-release",
"image_tag": f"server-{new_version}",
"configuration": {
"admin": {
"image_repository": "zenmldocker/prepare-release",
"image_tag": f"server-{new_version}",
},
},
},
}

response = requests.patch(url, json=data, headers=headers)
if response.status_code != 200:
raise requests.HTTPError("There was a problem updating the token.")
raise requests.HTTPError("There was a problem updating the tenant.")


def deactivate_tenant(token: str, tenant_id: str) -> None:
Expand Down

0 comments on commit ac3d22a

Please sign in to comment.