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.
This commit is contained in:
James Shubin
2024-11-06 20:14:24 -05:00
parent f8b06f32ec
commit 69e84fbbed

View File

@@ -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")
}