mirror of
https://github.com/Oxalide/vsphere-influxdb-go.git
synced 2023-10-10 11:36:51 +00:00
bugfix
This commit is contained in:
parent
a461957082
commit
59e2e1d2df
@ -833,10 +833,6 @@ func main() {
|
||||
config.InfluxDB.Password = os.Getenv("INFLUX_PASSWORD")
|
||||
config.InfluxDB.Database = os.Getenv("INFLUX_DATABASE")
|
||||
}
|
||||
// Add a default "" value for InfluxDB prefix for retrocompatibility post PR #53
|
||||
if config.InfluxDB.Prefix == nil {
|
||||
config.InfluxDB.Prefix = ""
|
||||
}
|
||||
// Support environment variables for VSphere
|
||||
// Currently ony one server is supported and added to the list of vSphere servers
|
||||
if vhostname := os.Getenv("VSPHERE_HOSTNAME"); vhostname != "" {
|
||||
|
Loading…
x
Reference in New Issue
Block a user