Skip to content

Commit

Permalink
Merge pull request #33 from Comcast/flip_default
Browse files Browse the repository at this point in the history
Fix mlock flag
  • Loading branch information
lewg authored Jan 3, 2024
2 parents a5fe799 + 1b2e46c commit d596c2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export DC="one"
export KV2_THREE="3" # Path: old/test, Key: three
```

*A Note About Vault:* If you have `secrets` defined in either the global or environment scope, it's a mapping from environment variable to the path in vault. Buildenv uses all the standard vault environment variables to communicate with vault (`VAULT_ADDR` and `VAULT_TOKEN` being the two you're most likely to use.) You can find the complete list [in the vault client docs](https://pkg.go.dev/github.com/hashicorp/[email protected]#WithEnvironment).
*A Note About Vault:* If you have `secrets` or `kv_secrets` defined in either the global or environment scope, it's a mapping from environment variable to the path & key in vault. Buildenv uses all the standard vault environment variables to communicate with vault (`VAULT_ADDR` and `VAULT_TOKEN` being the two you're most likely to use.) You can find the complete list [in the vault client docs](https://pkg.go.dev/github.com/hashicorp/[email protected]#WithEnvironment).

Running on Linux or in Docker container
----------
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Values can be specified in plain text, or set from a vault server.`,
debug, _ := cmd.Flags().GetBool("debug")

enableMlock, _ := cmd.Flags().GetBool("mlock")
if !enableMlock {
if enableMlock {
err := EnableMlock()
if err != nil {
fmt.Printf("Failure locking memory: %v", err)
Expand Down

0 comments on commit d596c2c

Please sign in to comment.