Hide deleted key in bucket info (fix #211) and fix smoke test #216

Merged
lx merged 2 commits from cleanups into main 2022-02-02 17:44:46 +00:00
Showing only changes of commit ae2f32baf1 - Show all commits

View file

@ -153,6 +153,9 @@ pub fn print_bucket_info(bucket: &Bucket, relevant_keys: &HashMap<String, Key>)
println!("\nAuthorized keys:"); println!("\nAuthorized keys:");
let mut table = vec![]; let mut table = vec![];
for (k, perm) in p.authorized_keys.items().iter() { for (k, perm) in p.authorized_keys.items().iter() {
if !perm.is_any() {
continue;
}
let rflag = if perm.allow_read { "R" } else { " " }; let rflag = if perm.allow_read { "R" } else { " " };
let wflag = if perm.allow_write { "W" } else { " " }; let wflag = if perm.allow_write { "W" } else { " " };
let oflag = if perm.allow_owner { "O" } else { " " }; let oflag = if perm.allow_owner { "O" } else { " " };