Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Corrects DynamoDB record path resolution when running Vault server on
Windows
  • Loading branch information
ebekker committed Jun 1, 2017
1 parent d004ad7 commit 3671861
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion physical/dynamodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,8 @@ func ensureTableExists(client *dynamodb.DynamoDB, table string, readCapacity, wr
// its last component.
func recordPathForVaultKey(key string) string {
if strings.Contains(key, "/") {
return filepath.Dir(key)
newPath := filepath.ToSlash(filepath.Dir(key))
return newPath
}
return DynamoDBEmptyPath
}
Expand Down

0 comments on commit 3671861

Please sign in to comment.