[compute_tools] Switch cluster_id in spec to string (zenithdb/console#72)

This commit is contained in:
Alexey Kondratov
2021-12-29 16:35:29 +03:00
committed by GitHub
parent c910132d4b
commit 8f0cd7fb9f
2 changed files with 2 additions and 2 deletions

View File

@@ -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<String>,
pub roles: Vec<Role>,

View File

@@ -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": [