Skip to content

Commit

Permalink
Changed GPO json to human readable format (indentation)
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed May 17, 2022
1 parent 6e32c9c commit a889ef8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/integrations/activedirectory/collect/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,9 @@ func Execute(cmd *cobra.Command, args []string) error {
}
defer f.Close()

err = json.NewEncoder(f).Encode(gpoinfo)
encoder := json.NewEncoder(f)
encoder.SetIndent("", " ")
err = encoder.Encode(gpoinfo)
if err != nil {
log.Error().Msgf("Problem marshalling GPO information to %v: %v", gpodatafile, err)
}
Expand Down

0 comments on commit a889ef8

Please sign in to comment.