Skip to content
This repository has been archived by the owner on Feb 15, 2021. It is now read-only.

Commit

Permalink
Added hostType field
Browse files Browse the repository at this point in the history
  • Loading branch information
amreo committed Sep 5, 2019
1 parent 31e4f62 commit 66826d9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type Configuration struct {
Hostname string
Envtype string
Location string
HostType string
Serverurl string
Serverusr string
Serverpsw string
Expand Down Expand Up @@ -73,6 +74,9 @@ func ReadConfig() Configuration {
if conf.Oratab == "" {
conf.Oratab = "/etc/oratab"
}
if conf.HostType == "" {
conf.HostType = "oracledb"
}

return conf
}
Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ func buildData(configuration config.Configuration) {
}
hostData.Environment = configuration.Envtype
hostData.Location = configuration.Location
hostData.HostType = configuration.HostType
hostData.Version = version

// Fill index fields
Expand Down
1 change: 1 addition & 0 deletions model/hostdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ type HostData struct {
Hostname string
Environment string
Location string
HostType string
Version string
Databases string
Schemas string
Expand Down

0 comments on commit 66826d9

Please sign in to comment.