summaryrefslogtreecommitdiffstats
path: root/modules/doctor/authorizedkeys.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/doctor/authorizedkeys.go')
-rw-r--r--modules/doctor/authorizedkeys.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/doctor/authorizedkeys.go b/modules/doctor/authorizedkeys.go
index 18e7a3cbf4..34dfe939d3 100644
--- a/modules/doctor/authorizedkeys.go
+++ b/modules/doctor/authorizedkeys.go
@@ -54,7 +54,7 @@ func checkAuthorizedKeys(ctx context.Context, logger log.Logger, autofix bool) e
// now we regenerate and check if there are any lines missing
regenerated := &bytes.Buffer{}
- if err := asymkey_model.RegeneratePublicKeys(regenerated); err != nil {
+ if err := asymkey_model.RegeneratePublicKeys(ctx, regenerated); err != nil {
logger.Critical("Unable to regenerate authorized_keys file. ERROR: %v", err)
return fmt.Errorf("Unable to regenerate authorized_keys file. ERROR: %v", err)
}