diff --git a/app/vmctl/influx/parser.go b/app/vmctl/influx/parser.go index e8b425f422..5cd5a374c3 100644 --- a/app/vmctl/influx/parser.go +++ b/app/vmctl/influx/parser.go @@ -58,6 +58,12 @@ func toFloat64(v interface{}) (float64, error) { return float64(i), nil case string: return strconv.ParseFloat(i, 64) + case bool: + if i { + return 1, nil + } else { + return 0, nil + } default: return 0, fmt.Errorf("unexpected value type %v", i) }