diff --git a/Gopkg.lock b/Gopkg.lock index cffc585..0cc05e6 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -33,7 +33,7 @@ "protocol", "registry" ] - revision = "1092f7a7ae44ef2f907579af217f1a594e48959c" + revision = "dcc3af07239b3f6fcbae3529bcb52c522b02053d" [[projects]] branch = "master" @@ -59,7 +59,7 @@ "time/scheduler/storage", "time/scheduler/task" ] - revision = "1966a985759721fd451171a78a0b8f4524afc644" + revision = "4d4017d214d2a8fdde59d774254f421991fabe7e" [[projects]] branch = "master" @@ -69,15 +69,15 @@ "config/probe", "core/annotation", "core/config", - "core/constants", "core/interfaces", "core/util", "model/data", "model/discovery", + "model/meta", "model/sensorconfig", "service/probe" ] - revision = "078a39712d33c131303cf2705cca185da18cc196" + revision = "846c510a1ae54597ef1b1589613dfca7a3f7a3ed" [[projects]] branch = "master" diff --git a/service/SensorConfigService.go b/service/SensorConfigService.go index 70448ed..50aa7ce 100644 --- a/service/SensorConfigService.go +++ b/service/SensorConfigService.go @@ -99,6 +99,7 @@ func (s *SensorConfigService) UpdateConfig(sensorConfig *ocmsc.SensorConfig) err if err := s.CollectorService.RemoveSensorConfigs([]*ocmsc.SensorConfig{sensorConfig}); nil != err { return err } + if err := s.CollectorService.AddSensorConfigs([]*ocmsc.SensorConfig{sensorConfig}); nil != err { return err }