Skip to content

Commit

Permalink
Add a default "" value for InfluxDB prefix for retrocompatibility pos…
Browse files Browse the repository at this point in the history
…t PR #53
  • Loading branch information
sofixa committed Jan 7, 2018
1 parent c252b28 commit bf09836
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vsphere-influxdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,10 @@ 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 != "" {
Expand Down

0 comments on commit bf09836

Please sign in to comment.