tape: mtx_status - consider new export-slots property

This commit is contained in:
Dietmar Maurer
2021-01-06 11:53:33 +01:00
parent 38ae42b11a
commit d5035c5600
4 changed files with 37 additions and 8 deletions

View File

@ -52,7 +52,7 @@ pub async fn get_status(name: String) -> Result<Vec<MtxStatusEntry>, Error> {
let data: ScsiTapeChanger = config.lookup("changer", &name)?;
let status = tokio::task::spawn_blocking(move || {
mtx_status(&data.path)
mtx_status(&data)
}).await??;
let state_path = Path::new(TAPE_STATUS_DIR);