JSON support for taking in host list (#8)
* Bumping up the version. * Adding flags to take in JSON from the command line. * go.sum no longer strictly necessary since go1.13 * Adding support for reading JSON list of hosts to drain from STDIN or from a file. * Adding changes to changelogs
This commit is contained in:
parent
d63c719cef
commit
f94a055b47
12 changed files with 91 additions and 93 deletions
|
@ -58,7 +58,7 @@ func killJob(cmd *cobra.Command, args []string) {
|
|||
log.Fatalln(err)
|
||||
}
|
||||
|
||||
if ok, err := client.InstancesMonitor(job.JobKey(), 0, 5, 50); !ok || err != nil {
|
||||
if ok, err := client.MonitorInstances(job.JobKey(), 0, 5, 50); !ok || err != nil {
|
||||
log.Fatalln("Unable to kill all instances of job")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue