This commit is contained in:
crusader 2018-06-13 19:45:06 +09:00
parent 61644fd5e4
commit 19dfca7aa5
2 changed files with 5 additions and 4 deletions

8
Gopkg.lock generated
View File

@ -33,7 +33,7 @@
"protocol", "protocol",
"registry" "registry"
] ]
revision = "1092f7a7ae44ef2f907579af217f1a594e48959c" revision = "dcc3af07239b3f6fcbae3529bcb52c522b02053d"
[[projects]] [[projects]]
branch = "master" branch = "master"
@ -59,7 +59,7 @@
"time/scheduler/storage", "time/scheduler/storage",
"time/scheduler/task" "time/scheduler/task"
] ]
revision = "1966a985759721fd451171a78a0b8f4524afc644" revision = "4d4017d214d2a8fdde59d774254f421991fabe7e"
[[projects]] [[projects]]
branch = "master" branch = "master"
@ -69,15 +69,15 @@
"config/probe", "config/probe",
"core/annotation", "core/annotation",
"core/config", "core/config",
"core/constants",
"core/interfaces", "core/interfaces",
"core/util", "core/util",
"model/data", "model/data",
"model/discovery", "model/discovery",
"model/meta",
"model/sensorconfig", "model/sensorconfig",
"service/probe" "service/probe"
] ]
revision = "078a39712d33c131303cf2705cca185da18cc196" revision = "846c510a1ae54597ef1b1589613dfca7a3f7a3ed"
[[projects]] [[projects]]
branch = "master" branch = "master"

View File

@ -99,6 +99,7 @@ func (s *SensorConfigService) UpdateConfig(sensorConfig *ocmsc.SensorConfig) err
if err := s.CollectorService.RemoveSensorConfigs([]*ocmsc.SensorConfig{sensorConfig}); nil != err { if err := s.CollectorService.RemoveSensorConfigs([]*ocmsc.SensorConfig{sensorConfig}); nil != err {
return err return err
} }
if err := s.CollectorService.AddSensorConfigs([]*ocmsc.SensorConfig{sensorConfig}); nil != err { if err := s.CollectorService.AddSensorConfigs([]*ocmsc.SensorConfig{sensorConfig}); nil != err {
return err return err
} }