syntax correction

This commit is contained in:
Hela Drira 2017-05-03 15:52:20 +02:00
parent 3442d30e1a
commit 7f61a40f1c
1 changed files with 7 additions and 10 deletions

View File

@ -21,8 +21,6 @@ import (
"encoding/json"
"flag"
"fmt"
"github.com/davecgh/go-spew/spew"
"golang.org/x/net/context"
"log"
"math"
"net/url"
@ -32,6 +30,9 @@ import (
"strings"
"time"
"github.com/davecgh/go-spew/spew"
"golang.org/x/net/context"
influxclient "github.com/influxdata/influxdb/client/v2"
"github.com/vmware/govmomi"
"github.com/vmware/govmomi/property"
@ -259,12 +260,10 @@ func (vcenter *VCenter) Query(config Configuration, InfluxDBClient influxclient.
} else if mor.Type == "HostSystem" {
host_refs = append(host_refs, mor)
new_mors = append(new_mors, mor)
}
else if mor.Type == "ResourcePool" {
} else if mor.Type == "ResourcePool" {
resp_refs = append(resp_refs, mor)
new_mors = append(new_mors, mor)
}
else if mor.Type == "ClusterComputeResource" {
} else if mor.Type == "ClusterComputeResource" {
cluster_refs = append(cluster_refs, mor)
}
@ -664,5 +663,3 @@ func main() {
queryVCenter(*vcenter, config, InfluxDBClient)
}
}