mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-22 22:06:55 +00:00
api: status: return gc-status again
Returning the GC status was dropped by mistake in commitfdcb2694
("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 <d.csapak@proxmox.com> [ T: add reference to breaking commit, reword message ] Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
a4f552f738
commit
c2049bce7f
@ -975,6 +975,9 @@ pub struct DataStoreStatusListItem {
|
|||||||
/// An error description, for example, when the datastore could not be looked up
|
/// An error description, for example, when the datastore could not be looked up
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub error: Option<String>,
|
pub error: Option<String>,
|
||||||
|
/// Status of last GC
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
|
pub gc_status: Option<GarbageCollectionStatus>,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub const ADMIN_DATASTORE_LIST_SNAPSHOTS_RETURN_TYPE: ReturnType = ReturnType {
|
pub const ADMIN_DATASTORE_LIST_SNAPSHOTS_RETURN_TYPE: ReturnType = ReturnType {
|
||||||
|
Loading…
Reference in New Issue
Block a user