From 25d3965769612d4325e8a4e0c9a392d8a29b753e Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 8 Jan 2021 09:16:42 +0100 Subject: [PATCH] tape: correctly skip cleaning tapes (not regular tapes) --- src/tape/changer/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tape/changer/mod.rs b/src/tape/changer/mod.rs index 947b187a..6f1bed74 100644 --- a/src/tape/changer/mod.rs +++ b/src/tape/changer/mod.rs @@ -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()); } }