diff --git a/cmd/cloud/getCloud.go b/cmd/cloud/getCloud.go index 831c9c42..82d557a1 100644 --- a/cmd/cloud/getCloud.go +++ b/cmd/cloud/getCloud.go @@ -66,7 +66,7 @@ var GetCloudCmd = &cobra.Command{ } onDemandPrice, ok := kv["uninterruptablePrice"].(float64) onDemandPriceString := "Reserved" - if ok && spotPrice > 0 { + if ok && onDemandPrice > 0 { onDemandPriceString = fmt.Sprintf("%.3f", onDemandPrice) } row := []string{