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:
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user