Skip to content

Commit

Permalink
Update opamp_agent.go
Browse files Browse the repository at this point in the history
  • Loading branch information
jagan2221 authored Aug 26, 2024
1 parent f265d2e commit f10e533
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/extension/opampextension/opamp_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ func (o *opampAgent) saveEffectiveConfig(dir string) error {

for k, v := range o.effectiveConfig {
p := filepath.Join(dir, k)
o.logger.Info("Loading file to Validate...", p)

// OpenFile the same way os.Create does it, but with 0600 perms
f, err := os.OpenFile(p, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0600)
Expand Down

0 comments on commit f10e533

Please sign in to comment.