From 06ce83c9125110361a78e15b01b66d36040a87b0 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Wed, 12 Apr 2023 01:57:48 +0300 Subject: [PATCH] Tolerate missing 'operation_uuid' field in spec file. 'compute_ctl' doesn't use the operation_uuid for anything, it just prints it to the log. --- compute_tools/src/compute.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compute_tools/src/compute.rs b/compute_tools/src/compute.rs index 426e2845ee..07ede44c9b 100644 --- a/compute_tools/src/compute.rs +++ b/compute_tools/src/compute.rs @@ -363,7 +363,7 @@ impl ComputeNode { info!( "starting compute for project {}, operation {}, tenant {}, timeline {}", spec.spec.cluster.cluster_id, - spec.spec.operation_uuid.as_ref().unwrap(), + spec.spec.operation_uuid.as_deref().unwrap_or("None"), spec.tenant_id, spec.timeline_id, );