]> git.proxmox.com Git - pve-manager.git/commit
api: notification: disallow removing targets if they are used
authorLukas Wagner <l.wagner@proxmox.com>
Thu, 3 Aug 2023 12:17:03 +0000 (14:17 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 16 Aug 2023 09:11:08 +0000 (11:11 +0200)
commit1ba1988dcf0e1039eb8f3e01a5ff8379c71e1f01
tree3865a9cd40c2b3ac0f0f71a37fef0da16c8f1921
parent7e6efd39050d7ac7ff7acf77210c02e68f34ccd4
api: notification: disallow removing targets if they are used

Check notification targets configured in datacenter.cfg and jobs.cfg,
failing if the group/endpoint to be removed is still in use there.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
PVE/API2/Cluster/Notifications.pm