Adding flags to take in JSON from the command line.
This commit is contained in:
parent
1497aca2bb
commit
e0d400e85c
9 changed files with 45 additions and 20 deletions
|
@ -66,13 +66,13 @@ func endMaintenance(cmd *cobra.Command, args []string) {
|
|||
log.Println(args)
|
||||
result, err := client.EndMaintenance(args...)
|
||||
if err != nil {
|
||||
log.Fatalf("error: %+v\n", err)
|
||||
log.Fatalf("error: %+v", err)
|
||||
}
|
||||
|
||||
log.Debugln(result)
|
||||
|
||||
// Monitor change to NONE mode
|
||||
hostResult, err := client.HostMaintenanceMonitor(
|
||||
hostResult, err := client.MonitorHostMaintenance(
|
||||
args,
|
||||
[]aurora.MaintenanceMode{aurora.MaintenanceMode_NONE},
|
||||
stopMaintenanceConfig.monitorInterval,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue