Skip to content

Commit

Permalink
go mod vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean-Coakley committed Nov 16, 2023
1 parent 78c9ddd commit 08b5507
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/extensions/nginx-app-protect/nap/nap_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ package nap
import (
"encoding/json"
"errors"
"os"
"fmt"
"os"
"path/filepath"

"github.com/nginx/agent/sdk/v2"
Expand Down Expand Up @@ -101,10 +101,10 @@ func UpdateMetadata(
}

log.Debugf("Writing NAP Metadata %s", m)

err = os.WriteFile(appProtectWAFDetails.GetWafLocation(), m, 0o664)
if err != nil {
return fmt.Errorf("failed to write NAP Metadata update: %v", err )
return fmt.Errorf("failed to write NAP Metadata update: %v", err)
}

return nil
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/nginx-app-protect/nap/nap_metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func TestUpdateNapMetadata(t *testing.T) {
WafLocation: metadataFile,
PrecompiledPublication: tc.precompPub,
}

ignoreDirectives = []string{}

err = UpdateMetadata(cfg, appProtectWAFDetails, ignoreDirectives)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 08b5507

Please sign in to comment.