From ae2f32baf143ecc312a54496f1b0df1f47af79d4 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 2 Feb 2022 17:12:48 +0100 Subject: [PATCH] Hide deleted key in bucket info (fix #211) --- src/garage/cli/util.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/garage/cli/util.rs b/src/garage/cli/util.rs index 61401e4c..7d496507 100644 --- a/src/garage/cli/util.rs +++ b/src/garage/cli/util.rs @@ -153,6 +153,9 @@ pub fn print_bucket_info(bucket: &Bucket, relevant_keys: &HashMap) println!("\nAuthorized keys:"); let mut table = vec![]; for (k, perm) in p.authorized_keys.items().iter() { + if !perm.is_any() { + continue; + } let rflag = if perm.allow_read { "R" } else { " " }; let wflag = if perm.allow_write { "W" } else { " " }; let oflag = if perm.allow_owner { "O" } else { " " };