client: rename variable to sensible name

two-letter abbreviations should only be used for things that have a very common
meaning (e.g. NS, RE, ..), not arbitrary things.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2024-02-13 10:47:03 +01:00
parent a78d4b5a3a
commit 2e2d3ec244

View File

@ -151,8 +151,8 @@ async fn delete_namespace(param: Value, delete_groups: Option<bool>) -> Result<(
let path = format!("api2/json/admin/datastore/{}/namespace", repo.store());
let mut param = json!({ "ns": backup_ns });
if let Some(dg) = delete_groups {
param["delete-groups"] = serde_json::to_value(dg)?;
if let Some(value) = delete_groups {
param["delete-groups"] = serde_json::to_value(value)?;
}
let client = connect(&repo)?;