[pbs-devel] [PATCH proxmox-backup 05/15] api2/tape/drive: add load_media as api call

Dominik Csapak d.csapak at proxmox.com
Wed Jan 27 11:33:51 CET 2021


code was already there, just add it as api call

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 src/api2/tape/drive.rs | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/api2/tape/drive.rs b/src/api2/tape/drive.rs
index 936bc528..492d66a6 100644
--- a/src/api2/tape/drive.rs
+++ b/src/api2/tape/drive.rs
@@ -1192,6 +1192,11 @@ pub const SUBDIRS: SubdirMap = &sorted!([
         &Router::new()
             .put(&API_METHOD_LABEL_MEDIA)
     ),
+    (
+        "load-media",
+        &Router::new()
+            .put(&API_METHOD_LOAD_MEDIA)
+    ),
     (
         "load-slot",
         &Router::new()
-- 
2.20.1






More information about the pbs-devel mailing list