mongodb secret backend documentation: Use single quotes around roles JSON to avoid needing to escape double quotes within the JSON

This commit is contained in:
Matt Hurne 2016-07-07 22:31:35 -04:00
parent eee6f04e40
commit b1dd5bf449
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ users created for that Vault role.
For example, let's create a "readonly" role:
```
$ vault write mongodb/roles/readonly db=foo roles="[ \"readWrite\", { \"role\": \"read\", \"db\": \"bar\" } ]"
$ vault write mongodb/roles/readonly db=foo roles='[ "readWrite", { "role": "read", "db": "bar" } ]'
Success! Data written to: mongodb/roles/readonly
```