Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…n-client into implement-async-client
  • Loading branch information
tsmith023 committed Jul 2, 2024
2 parents f1685d1 + 243a1e0 commit 6ed818d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions weaviate/collections/classes/tenants.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,13 @@ class TenantActivityStatusInput(str, Enum):
The tenant is fully active and can be used.
`COLD`
The tenant is not active, files stored locally.
`FROZEN`
The tenant is not active, files stored on the cloud.
"""

HOT = "HOT"
COLD = "COLD"
FROZEN = "FROZEN"


class TenantInput(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion weaviate/collections/tenants/tenants.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def __map_input_tenant(self, tenant: TenantInputType) -> TenantInput:
TenantActivityStatus.UNFREEZING,
]:
raise WeaviateInvalidInputError(
f"Tenant activity status must be either 'HOT' or 'COLD'. Other statuses are read-only and cannot be set. Tenant: {tenant.name} had status: {tenant.activity_status}"
f"Tenant activity status must be one of 'HOT', 'COLD' or 'FROZEN'. Other statuses are read-only and cannot be set. Tenant: {tenant.name} had status: {tenant.activity_status}"
)
activity_status = TenantActivityStatusInput(tenant.activity_status)
return TenantInput(name=tenant.name, activity_status=activity_status)
Expand Down

0 comments on commit 6ed818d

Please sign in to comment.