]> git.proxmox.com Git - proxmox-backup.git/commitdiff
proxmox-tape: add 'force-media-set' also to cli
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 10 Sep 2021 07:41:57 +0000 (09:41 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 10 Sep 2021 08:06:21 +0000 (10:06 +0200)
we have it in the api and gui, but the cli was missing

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/bin/proxmox-tape.rs

index debf5d4feafef9ebb1dbe1b4330ff5b23083c5d7..8033227457c3927703315d1b3bc4303b40ad91b4 100644 (file)
@@ -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,