Skip to content

Commit

Permalink
fix checkandstart other command bug (#813)
Browse files Browse the repository at this point in the history
Co-authored-by: miaodanyang <miaodanyang@baidu.com>
  • Loading branch information
miaow999 and miaodanyang committed Dec 11, 2023
1 parent efabc23 commit 46c1a66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ami/native/prober/prober_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ func (m *manager) RemoveApp(app *v1.AppInfo) {

// CheckAndStart This is used for restarting baetyl-core, due to applying apps will not be called.
func (m *manager) CheckAndStart(svc service.Service, info *v1.AppInfo) {
if m.store == nil {
return
}
if strings.HasPrefix(info.Name, v1.BaetylCore) || strings.HasPrefix(info.Name, v1.BaetylInit) {
return
}
Expand Down

0 comments on commit 46c1a66

Please sign in to comment.