]> git.proxmox.com Git - proxmox-backup.git/commit
api2/config/tape_backup_job: fix duplicate id parameter
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 23 Feb 2021 14:54:03 +0000 (15:54 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 23 Feb 2021 16:23:47 +0000 (17:23 +0100)
commit52d8db792504d255a0a0d7198b734694ad182113
treeb6d662e9c3b1830f74950de98df5f7a1cbbde455
parent875d375d7a44e09f75b31bb55417b1c90476d0c9
api2/config/tape_backup_job: fix duplicate id parameter

since the PUT api call is using the 'Updater', the 'id' parameter is
already encoded in there, tripping up the api verify tests with
'Duplicate keys found in AllOf schema: id'

"fixing" it by removing the explicit id from the api call and
taking it from the Updater (and failing if it does not exists there;
even though that should never happen)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/api2/config/tape_backup_job.rs