api: status: return gc-status again

Returning the GC status was dropped by mistake in commit 762f7d15
("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: 762f7d15
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:
Dominik Csapak
2022-04-29 12:07:12 +02:00
committed by Thomas Lamprecht
parent 0f198b82f5
commit 8550de7403
2 changed files with 5 additions and 0 deletions

View File

@ -63,6 +63,7 @@ pub fn datastore_status(
history_delta: None,
estimated_full_date: None,
error: Some(err.to_string()),
gc_status: None,
});
continue;
}
@ -79,6 +80,7 @@ pub fn datastore_status(
history_delta: None,
estimated_full_date: None,
error: None,
gc_status: Some(datastore.last_gc_status()),
};
let rrd_dir = format!("datastore/{}", store);