tape: correctly skip cleaning tapes (not regular tapes)

This commit is contained in:
Dietmar Maurer 2021-01-08 09:16:42 +01:00
parent 08d8b2a4fd
commit 25d3965769

View File

@ -56,7 +56,7 @@ pub trait MediaChange {
for (import_export, element_status) in status.slots.iter() {
if *import_export { continue; }
if let ElementStatus::VolumeTag(ref tag) = element_status {
if !tag.starts_with("CLN") { continue; }
if tag.starts_with("CLN") { continue; }
list.push(tag.clone());
}
}