tape: MediaPool - replace use_offline_media with changer_name

This way, we can improve location_is_available, because we only
consider media from that changer as available.
This commit is contained in:
Dietmar Maurer
2021-02-04 10:15:18 +01:00
parent b81e37f6ab
commit cdf39e62b3
4 changed files with 42 additions and 28 deletions

View File

@ -86,8 +86,8 @@ pub async fn list_media(pool: Option<String>) -> Result<Vec<MediaListEntry>, Err
let config: MediaPoolConfig = config.lookup("pool", pool_name)?;
let use_offline_media = true; // does not matter here
let pool = MediaPool::with_config(status_path, &config, use_offline_media)?;
let changer_name = None; // does not matter here
let pool = MediaPool::with_config(status_path, &config, changer_name)?;
let current_time = proxmox::tools::time::epoch_i64();