Skip to content

Commit

Permalink
users: log exceptions for obtaining locked status
Browse files Browse the repository at this point in the history
This doesn't fix anything but might might help uncover our
TestAccounts.testBasic flake where the locked checkbox is shown as null
instead of unchecked.
  • Loading branch information
jelly committed Feb 28, 2024
1 parent 655aab5 commit 22e140c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/users/utils.js
Expand Up @@ -7,4 +7,8 @@ export const get_locked = name =>
// libuser uses "LK", shadow-utils use "L".
return status == "LK" || status == "L";
})
.catch(() => null);
.catch(exc => {
if (exc.problem !== "access-denied") {
console.warn(`Failed to obtain account lock information for ${name}`, exc);
}
});

0 comments on commit 22e140c

Please sign in to comment.