Skip to content

Commit

Permalink
Osquerybeat: Fix restart flags after previously bad config (#28827) (#…
Browse files Browse the repository at this point in the history
…28911)

(cherry picked from commit 8d8e387)

Co-authored-by: Aleksandr Maus <[email protected]>
  • Loading branch information
mergify[bot] and aleksmaus authored Nov 11, 2021
1 parent d87b2e1 commit 67e1f7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x-pack/osquerybeat/beater/osquery_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ func (r *osqueryRunner) Run(parentCtx context.Context, runfn osqueryRunFunc) err

// Wait until osquery runner exists
wg.Wait()

// Set the flags to use
flags = newFlags
}

// Set the flags to use
flags = newFlags

// Start osqueryd if not running
if cn == nil {
r.log.Info("Start osqueryd")
Expand Down

0 comments on commit 67e1f7d

Please sign in to comment.