src/bin/proxmox-backup-manager.rs: only show pending changes with "text" format
This commit is contained in:
parent
2eefd9aee1
commit
3181f9b625
|
@ -256,9 +256,11 @@ fn list_network_devices(param: Value, rpcenv: &mut dyn RpcEnvironment) -> Result
|
||||||
|
|
||||||
if let Some(changes) = rpcenv.get_result_attrib("changes") {
|
if let Some(changes) = rpcenv.get_result_attrib("changes") {
|
||||||
if let Some(diff) = changes.as_str() {
|
if let Some(diff) = changes.as_str() {
|
||||||
|
if output_format == "text" {
|
||||||
eprintln!("pending changes:\n{}\n", diff);
|
eprintln!("pending changes:\n{}\n", diff);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fn render_address(_value: &Value, record: &Value) -> Result<String, Error> {
|
fn render_address(_value: &Value, record: &Value) -> Result<String, Error> {
|
||||||
let mut text = String::new();
|
let mut text = String::new();
|
||||||
|
|
Loading…
Reference in New Issue