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:
parent
eee6f04e40
commit
b1dd5bf449
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue