Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Chong-Li committed Dec 16, 2024
1 parent 55eb767 commit e5ed6f0
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@ async def get_all_virtual_clusters(self, req) -> aiohttp.web.Response:
reply, always_print_fields_with_no_presence=True
)
for virtual_cluster_data in data.get("virtualClusterDataList", []):
if "revision" in virtual_cluster_data:
virtual_cluster_data["revision"] = int(
virtual_cluster_data.get("revision")
)
virtual_cluster_data["revision"] = int(
virtual_cluster_data.get("revision", 0)
)

return dashboard_optional_utils.rest_response(
success=True,
Expand Down

0 comments on commit e5ed6f0

Please sign in to comment.