From c2049bce7fd082148751cb3324ef5b69026cd2bd Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Fri, 29 Apr 2022 12:07:12 +0200 Subject: [PATCH] api: status: return gc-status again Returning the GC status was dropped by mistake in commit fdcb2694 ("datastore status: factor out api type DataStoreStatusListItem") As this is considered a breaking change which we also felt, due to the gc-status being used in the web interface for the datastore overview list (not the dashboard), re add it. Fixes: fdcb2694 Signed-off-by: Dominik Csapak [ T: add reference to breaking commit, reword message ] Signed-off-by: Thomas Lamprecht --- pbs-api-types/src/datastore.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pbs-api-types/src/datastore.rs b/pbs-api-types/src/datastore.rs index df891cac..e0b900d9 100644 --- a/pbs-api-types/src/datastore.rs +++ b/pbs-api-types/src/datastore.rs @@ -975,6 +975,9 @@ pub struct DataStoreStatusListItem { /// An error description, for example, when the datastore could not be looked up #[serde(skip_serializing_if = "Option::is_none")] pub error: Option, + /// Status of last GC + #[serde(skip_serializing_if = "Option::is_none")] + pub gc_status: Option, } pub const ADMIN_DATASTORE_LIST_SNAPSHOTS_RETURN_TYPE: ReturnType = ReturnType {