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.
This commit is contained in:
Heikki Linnakangas
2023-04-12 01:57:48 +03:00
committed by Heikki Linnakangas
parent 8ace7a7515
commit 06ce83c912

View File

@@ -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,
);