From 69e84fbbedcf1374b1ab866579aa3589f557af9c Mon Sep 17 00:00:00 2001 From: James Shubin Date: Wed, 6 Nov 2024 20:14:24 -0500 Subject: [PATCH] engine: resources: cron: Add ctx where possible. Lots of the API's here now support this. Here's an example, work on the others too. --- engine/resources/cron.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/resources/cron.go b/engine/resources/cron.go index 5c436a76..53ca4712 100644 --- a/engine/resources/cron.go +++ b/engine/resources/cron.go @@ -390,7 +390,7 @@ func (obj *CronRes) unitCheckApply(ctx context.Context, apply bool) (bool, error } // systemctl daemon-reload - if err := conn.Reload(); err != nil { + if err := conn.ReloadContext(ctx); err != nil { return false, errwrap.Wrapf(err, "error reloading daemon") }