Merge pull request #125 from shunfei/fix/group-add-node

Fix #121 add node to group
pull/126/head
QLeelulu 2018-12-01 23:37:28 +08:00 committed by GitHub
commit beab0d0078
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -387,6 +387,7 @@ func (n *Node) groupAddNode(g *cronsun.Group) {
} }
job.Init(n.ID, n.Hostname, n.IP) job.Init(n.ID, n.Hostname, n.IP)
n.jobs[jid] = job
} }
cmds := job.Cmds(n.ID, n.groups) cmds := job.Cmds(n.ID, n.groups)