[pbs-devel] [PATCH proxmox-backup] proxmox-tape: add 'force-media-set' also to cli

Dominik Csapak d.csapak at proxmox.com
Fri Sep 10 09:41:57 CEST 2021


we have it in the api and gui, but the cli was missing

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

diff --git a/src/bin/proxmox-tape.rs b/src/bin/proxmox-tape.rs
index debf5d4f..80332274 100644
--- a/src/bin/proxmox-tape.rs
+++ b/src/bin/proxmox-tape.rs
@@ -841,6 +841,12 @@ async fn clean_drive(mut param: Value) -> Result<(), Error> {
                 type: bool,
                 optional: true,
             },
+            "force-media-set": {
+                description: "Ignore the allocation policy and start a new media-set.",
+                optional: true,
+                type: bool,
+                default: false,
+            },
             "output-format": {
                 schema: OUTPUT_FORMAT,
                 optional: true,
-- 
2.30.2






More information about the pbs-devel mailing list