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

Commit

Permalink
Merge pull request #25 from amreo/master
Browse files Browse the repository at this point in the history
Added hostType field
  • Loading branch information
amreo authored Sep 5, 2019
2 parents bd07798 + 66826d9 commit 3c2bc9c
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 3c2bc9c

Please sign in to comment.