diff --git a/configobject/host/host.go b/configobject/host/host.go index fc6aea9a..9469569f 100644 --- a/configobject/host/host.go +++ b/configobject/host/host.go @@ -100,13 +100,7 @@ type Host struct { } func NewHost() configobject.Row { - h := Host{ - EnvId: icingadb_utils.DecodeChecksum(icingadb_utils.Sha1("default")), - CheckPeriod: "check_period", - CheckPeriodId: icingadb_utils.DecodeChecksum(icingadb_utils.Sha1("check_period")), - Eventcommand: "event_command", - CommandEndpoint: "command_endpoint", - } + h := Host{} h.NameCi = &h.Name return &h diff --git a/configobject/service/service.go b/configobject/service/service.go index 355b0a57..25839d7c 100644 --- a/configobject/service/service.go +++ b/configobject/service/service.go @@ -94,13 +94,7 @@ type Service struct { } func NewService() configobject.Row { - s := Service{ - EnvId: icingadb_utils.DecodeChecksum(icingadb_utils.Sha1("default")), - CheckPeriod: "check_period", - CheckPeriodId: icingadb_utils.DecodeChecksum(icingadb_utils.Sha1("check_period")), - Eventcommand: "event_command", - CommandEndpoint: "command_endpoint", - } + s := Service{} s.NameCi = &s.Name return &s