Commit b4735eb1 authored by Matt Bell's avatar Matt Bell Committed by Juan Batiz-Benet

main: Test if commands are local-only when choosing daemon vs. local

parent 27b9aec3
......@@ -206,7 +206,7 @@ func callCommand(req cmds.Request, root *cmds.Command) (cmds.Response, error) {
if err != nil {
return nil, err
}
remote := !found || !local
remote := !isLocal(req.Command()) && !found || !local
log.Info("Checking if daemon is running...")
if remote && daemon.Locked(req.Context().ConfigRoot) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment