From 86e4619dcf69843a74889e06dc74ade06565bcc1 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Fri, 12 Jan 2018 16:16:37 -0600 Subject: [PATCH] Update echo ansible-vault example with -n as without this, you get a newline. Fixes #34795 (#34823) --- docs/docsite/rst/vault.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docsite/rst/vault.rst b/docs/docsite/rst/vault.rst index 87f4ff391a..d63a34aa24 100644 --- a/docs/docsite/rst/vault.rst +++ b/docs/docsite/rst/vault.rst @@ -155,7 +155,7 @@ To encrypt a string read from stdin and name it 'db_password': .. code-block:: bash - echo 'letmein' | ansible-vault encrypt_string --vault-id dev@password --stdin-name 'db_password' + echo -n 'letmein' | ansible-vault encrypt_string --vault-id dev@password --stdin-name 'db_password' Result::