Skip to content

Commit

Permalink
Merge branch 'feature/fix-dont-add-csv' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
redhug1 committed Nov 25, 2021
2 parents eade3e9 + 60717e4 commit 235763e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ func (h *XlsxCreate) getVaultKeyForCSVFile(fileName string) ([]byte, error) {
return nil, errors.New("vault filename required but was empty")
}

vaultPath := fmt.Sprintf("%s/%s.csv", h.cfg.VaultPath, fileName)
// NOTE: incoming file name already has '.csv' on the end - so no need to add again
vaultPath := fmt.Sprintf("%s/%s", h.cfg.VaultPath, fileName)

pskStr, err := h.vaultClient.ReadKey(vaultPath, "key")
if err != nil {
Expand Down

0 comments on commit 235763e

Please sign in to comment.