Adding flags to take in JSON from the command line.

This commit is contained in:
Renan DelValle 2020-02-06 18:49:21 -08:00
parent 1497aca2bb
commit e0d400e85c
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9
9 changed files with 45 additions and 20 deletions

View file

@ -61,7 +61,7 @@ func monitorHost(cmd *cobra.Command, args []string) {
}
log.Infof("Monitoring for %v at %v intervals", monitorHostCmd.monitorTimeout, monitorHostCmd.monitorInterval)
hostResult, err := client.HostMaintenanceMonitor(args, maintenanceModes, monitorHostCmd.monitorInterval, monitorHostCmd.monitorTimeout)
hostResult, err := client.MonitorHostMaintenance(args, maintenanceModes, monitorHostCmd.monitorInterval, monitorHostCmd.monitorTimeout)
maintenanceMonitorPrint(hostResult, maintenanceModes)