Skip to content

Commit 52e485d

Browse files
committed
Osquerybeat: Fix restart flags after previously bad config
1 parent d504254 commit 52e485d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

x-pack/osquerybeat/beater/osquery_runner.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ func (r *osqueryRunner) Run(parentCtx context.Context, runfn osqueryRunFunc) err
6868

6969
// Wait until osquery runner exists
7070
wg.Wait()
71-
72-
// Set the flags to use
73-
flags = newFlags
7471
}
7572

73+
// Set the flags to use
74+
flags = newFlags
75+
7676
// Start osqueryd if not running
7777
if cn == nil {
7878
r.log.Info("Start osqueryd")

0 commit comments

Comments
 (0)