api2/config/remote: remove password from read_remote
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
99f443c6ae
commit
5dcdcea293
@ -131,6 +131,7 @@ pub fn read_remote(
|
||||
) -> Result<Value, Error> {
|
||||
let (config, digest) = remote::config()?;
|
||||
let mut data = config.lookup_json("remote", &name)?;
|
||||
data.as_object_mut().unwrap().remove("password");
|
||||
rpcenv["digest"] = proxmox::tools::digest_to_hex(&digest).into();
|
||||
Ok(data)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user