docs: fix placement of warning in kv put example

This commit is contained in:
Daniel Upton 2022-01-10 11:40:25 +00:00
parent 69ccad8b44
commit c9c34d0e76
1 changed files with 3 additions and 3 deletions

View File

@ -69,6 +69,9 @@ $ consul kv put redis/config/connections
Success! Data written to: redis/config/connections Success! Data written to: redis/config/connections
``` ```
!> **Be careful when overwriting data!** The above operation would overwrite
the value at the key to the empty value.
If the `-base64` flag is set, the data will be decoded before writing: If the `-base64` flag is set, the data will be decoded before writing:
```shell-session ```shell-session
@ -76,9 +79,6 @@ $ consul kv put -base64 foo/encoded aGVsbG8gd29ybGQK
Success! Data written to: foo/encoded Success! Data written to: foo/encoded
``` ```
!> **Be careful when overwriting data!** The above operation would overwrite
the value at the key to the empty value.
For longer or sensitive values, it is possible to read from a file by prefixing For longer or sensitive values, it is possible to read from a file by prefixing
with the `@` symbol: with the `@` symbol: