From 3181f9b625575d3759555eafc96a53f29f636b19 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 24 Apr 2020 10:16:57 +0200 Subject: [PATCH] src/bin/proxmox-backup-manager.rs: only show pending changes with "text" format --- src/bin/proxmox-backup-manager.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/proxmox-backup-manager.rs b/src/bin/proxmox-backup-manager.rs index 0ff4d4a0..78adb3ab 100644 --- a/src/bin/proxmox-backup-manager.rs +++ b/src/bin/proxmox-backup-manager.rs @@ -256,7 +256,9 @@ fn list_network_devices(param: Value, rpcenv: &mut dyn RpcEnvironment) -> Result if let Some(changes) = rpcenv.get_result_attrib("changes") { if let Some(diff) = changes.as_str() { - eprintln!("pending changes:\n{}\n", diff); + if output_format == "text" { + eprintln!("pending changes:\n{}\n", diff); + } } }