]> git.proxmox.com Git - proxmox-backup.git/commitdiff
api-types: fixup backup-ns being optional
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 29 Apr 2022 10:11:32 +0000 (12:11 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 May 2022 07:33:50 +0000 (09:33 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
pbs-api-types/src/datastore.rs

index 325580663b8fbfb89ae3cc7dc7bd804604dda224..b75bcf6076d4a091b4ca211f7a94236cd45d39e2 100644 (file)
@@ -809,7 +809,7 @@ impl std::cmp::PartialOrd for BackupType {
 
 #[api(
     properties: {
-        "backup-ns": { type: BackupNamespace },
+        "backup-ns": { type: BackupNamespace, optional: true },
         "backup-type": { type: BackupType },
         "backup-id": { schema: BACKUP_ID_SCHEMA },
     },