From 8f0cd7fb9f249c2635c77343939bace9f04e7b41 Mon Sep 17 00:00:00 2001 From: Alexey Kondratov Date: Wed, 29 Dec 2021 16:35:29 +0300 Subject: [PATCH] [compute_tools] Switch cluster_id in spec to string (zenithdb/console#72) --- compute_tools/src/zenith.rs | 2 +- compute_tools/tests/cluster_spec.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compute_tools/src/zenith.rs b/compute_tools/src/zenith.rs index 96aef00016..b2cb4a3cee 100644 --- a/compute_tools/src/zenith.rs +++ b/compute_tools/src/zenith.rs @@ -37,7 +37,7 @@ pub struct ClusterSpec { /// like Rails web console. #[derive(Clone, Deserialize)] pub struct Cluster { - pub cluster_id: i64, + pub cluster_id: String, pub name: String, pub state: Option, pub roles: Vec, diff --git a/compute_tools/tests/cluster_spec.json b/compute_tools/tests/cluster_spec.json index e0034415f1..4a1672919c 100644 --- a/compute_tools/tests/cluster_spec.json +++ b/compute_tools/tests/cluster_spec.json @@ -5,7 +5,7 @@ "operation_uuid": "0f657b36-4b0f-4a2d-9c2e-1dcd615e7d8b", "cluster": { - "cluster_id": 42, + "cluster_id": "test-cluster-42", "name": "Zenith Test", "state": "restarted", "roles": [