Skip to content

Commit

Permalink
Initial Runner should run snapshot as well as differencial (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
directionless authored Mar 6, 2019
1 parent 7089573 commit 893f3a9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkg/osquery/extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -877,11 +877,8 @@ func (i *initialRunner) Execute(configBlob string, writeFn func(ctx context.Cont
continue
}

for query, content := range pack.Queries {
// only run differential queries
if content.Snapshot != nil && *content.Snapshot {
continue
}
// Run all the queries, snapshot and differential
for query, _ := range pack.Queries {
queryName := fmt.Sprintf("pack:%s:%s", packName, query)
allQueries = append(allQueries, queryName)
}
Expand Down

0 comments on commit 893f3a9

Please sign in to comment.