From aa6eb5a56cebffb4fe913e61e85003b489666447 Mon Sep 17 00:00:00 2001 From: denisonbarbosa Date: Mon, 2 Dec 2024 06:28:48 -0400 Subject: [PATCH] fixup! fixup! Support for Polkit 124 --- internal/policies/privilege/privilege.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/policies/privilege/privilege.go b/internal/policies/privilege/privilege.go index 7e234e35b..4261ac312 100644 --- a/internal/policies/privilege/privilege.go +++ b/internal/policies/privilege/privilege.go @@ -386,7 +386,7 @@ func polkitAdminIdentitiesFromRules(ctx context.Context, rulesDirPaths []string) } // If we get an error when reading the file, it's likely due to it being a directory. // This case we can ignore and continue to the next file. - log.Debugf(ctx, gotext.Get("Ignoring %s: %v", path, err)) + log.Debug(ctx, gotext.Get("Ignoring %s: %v", path, err)) continue } rules := string(b) @@ -402,7 +402,7 @@ func polkitAdminIdentitiesFromRules(ctx context.Context, rulesDirPaths []string) continue } - log.Debugf(ctx, gotext.Get("Using polkit admin identities from %q", path)) + log.Debug(ctx, gotext.Get("Using polkit admin identities from %q", path)) return strings.Join(userRegex.FindAllString(returnStmt, -1), ","), nil } }