X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=pbs-tape%2Fsrc%2Flib.rs;h=570314e33b3e56a1b1d86ea173deb6ca9c27402d;hb=9fa3026a0809027aa719ce14286fdb335bee5d5b;hp=27522002e8f861212530551977d495ed1b64d7b7;hpb=821aa8eae611fc92875509f82b9de4714cfe0434;p=proxmox-backup.git diff --git a/pbs-tape/src/lib.rs b/pbs-tape/src/lib.rs index 27522002..570314e3 100644 --- a/pbs-tape/src/lib.rs +++ b/pbs-tape/src/lib.rs @@ -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 = 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()