]> git.proxmox.com Git - proxmox-backup.git/commit - src/api2/config/changer.rs
api2/config/{drive, changer}: prevent adding same device multiple times
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 28 Jan 2021 11:59:44 +0000 (12:59 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 28 Jan 2021 14:03:56 +0000 (15:03 +0100)
commitb03ec281bf3ca68ee67bb835b0f877f16de72db6
tree3913251a18d8c67034322bcdd0896dd39f877ac2
parentcef4654ff40b022945459038723f0b614aa3e5b6
api2/config/{drive, changer}: prevent adding same device multiple times

this check is not perfect since there are often multiple device
nodes per drive/changer, but from the scan api we should return always
the same, so for an api user this should be enough

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