diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2020-09-27 13:01:48 -0400 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2020-10-09 20:09:18 -0400 |
| commit | 91f0cef6d9856c8b65d3fba0558968ec974719e9 (patch) | |
| tree | 23cc72ebff80a36583ca8824239b49af35fb916f /vault | |
| parent | a1fe2f98158c746567ae784db2002f800684835f (diff) | |
Fix some Windows file mode issues
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'vault')
| -rw-r--r-- | vault/auth.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vault/auth.go b/vault/auth.go index 201ad595..389acd55 100644 --- a/vault/auth.go +++ b/vault/auth.go @@ -11,6 +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/pkg/errors" ) @@ -169,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, os.FileMode(0600)) + f, err := os.OpenFile(output, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, config.NormalizeFileMode(0o600)) if err != nil { return "", errors.Wrapf(err, "Error opening nonce output file") } |
