summaryrefslogtreecommitdiff
path: root/vault
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2021-03-31 08:57:55 -0400
committerDave Henderson <dhenderson@gmail.com>2021-03-31 08:57:55 -0400
commit9b66eb2dc1cc219396b9e0e0a6771e343e7b80b5 (patch)
tree9f7e08c856a09cc6a66c63d49b667c1cc5cd0519 /vault
parent0a6e459c588d2505fc872e80c70ebbefd57d5247 (diff)
move NormalizeFileMode to iohelpers package
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'vault')
-rw-r--r--vault/auth.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vault/auth.go b/vault/auth.go
index 83b31ce8..0014664f 100644
--- a/vault/auth.go
+++ b/vault/auth.go
@@ -11,7 +11,7 @@ import (
"github.com/hairyhenderson/gomplate/v3/aws"
"github.com/hairyhenderson/gomplate/v3/conv"
"github.com/hairyhenderson/gomplate/v3/env"
- "github.com/hairyhenderson/gomplate/v3/internal/config"
+ "github.com/hairyhenderson/gomplate/v3/internal/iohelpers"
"github.com/pkg/errors"
)
@@ -170,7 +170,7 @@ func (v *Vault) EC2Login() (string, error) {
if val, ok := secret.Auth.Metadata["nonce"]; ok {
nonce = val
}
- f, err := os.OpenFile(output, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, config.NormalizeFileMode(0o600))
+ f, err := os.OpenFile(output, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, iohelpers.NormalizeFileMode(0o600))
if err != nil {
return "", errors.Wrapf(err, "Error opening nonce output file")
}