Skip to content

Commit 3efe640

Browse files
wuriyantowuriyanto
authored andcommitted
runner: init service if its enabled
1 parent 6b1ab8d commit 3efe640

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

runner/runner.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,10 @@ func (r *Runner) InitServices() error {
160160
return errors.New("invalid config file")
161161
}
162162

163-
if s, ok := initServiceKind(tob.ServiceKind(serviceKind), pluginPath, r.verbose); ok {
164-
r.services[name] = s
163+
if serviceEnabled {
164+
if s, ok := initServiceKind(tob.ServiceKind(serviceKind), pluginPath, r.verbose); ok {
165+
r.services[name] = s
166+
}
165167
}
166168

167169
if service, ok := r.services[name]; ok && service != nil && serviceEnabled {

0 commit comments

Comments
 (0)