]> git.proxmox.com Git - proxmox-backup.git/blobdiff - pbs-tape/src/lib.rs
cleanup schema function calls
[proxmox-backup.git] / pbs-tape / src / lib.rs
index 27522002e8f861212530551977d495ed1b64d7b7..570314e33b3e56a1b1d86ea173deb6ca9c27402d 100644 (file)
@@ -6,7 +6,6 @@ use endian_trait::Endian;
 use serde::{Serialize, Deserialize};
 use serde_json::Value;
 
-use proxmox_schema::parse_property_string;
 use proxmox_uuid::Uuid;
 
 use pbs_api_types::{ScsiTapeChanger, SLOT_ARRAY_SCHEMA};
@@ -313,7 +312,7 @@ impl MtxStatus {
         let mut export_slots: HashSet<u64> = HashSet::new();
 
         if let Some(slots) = &config.export_slots {
-            let slots: Value = parse_property_string(&slots, &SLOT_ARRAY_SCHEMA)?;
+            let slots: Value = SLOT_ARRAY_SCHEMA.parse_property_string(&slots)?;
             export_slots = slots
                 .as_array()
                 .unwrap()