Skip to content

Commit

Permalink
Add a switch for the demo server to use version 2 kv mount by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferai committed May 22, 2018
1 parent a431438 commit 1fb28cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vault/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"
"os"
"sort"
"strings"
"sync"
Expand Down Expand Up @@ -978,6 +979,9 @@ func (c *Core) defaultMountTable() *MountTable {
"version": "1",
},
}
if os.Getenv("VAULT_INTERACTIVE_DEMO_SERVER") != "" {
kvMount.Options["version"] = "2"
}
table.Entries = append(table.Entries, kvMount)
table.Entries = append(table.Entries, c.requiredMountTable().Entries...)
return table
Expand Down

0 comments on commit 1fb28cf

Please sign in to comment.