[pbs-devel] [PATCH proxmox-backup 3/4] fix #4256: api2: remove datastore ACL-node on removal of datastore
Hannes Laimer
h.laimer at proxmox.com
Mon Dec 19 15:13:25 CET 2022
Signed-off-by: Hannes Laimer <h.laimer at proxmox.com>
---
src/api2/config/datastore.rs | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/api2/config/datastore.rs b/src/api2/config/datastore.rs
index 27489590..677650b9 100644
--- a/src/api2/config/datastore.rs
+++ b/src/api2/config/datastore.rs
@@ -440,6 +440,10 @@ pub async fn delete_datastore(
delete_prune_job(job.config.id, None, rpcenv)?
}
+ let (mut tree, _digest) = pbs_config::acl::config()?;
+ tree.delete_node(&format!("/datastore/{}", name));
+ pbs_config::acl::save_config(&tree)?;
+
let tape_jobs = list_tape_backup_jobs(Value::Null, rpcenv)?;
for job_config in tape_jobs
.into_iter()
--
2.30.2
More information about the pbs-devel
mailing list