[PATCH] docs: formatsecret: Fix an example of secret-set-value

Han Han posted 1 patch 8 hours ago
docs/formatsecret.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] docs: formatsecret: Fix an example of secret-set-value
Posted by Han Han 8 hours ago
The previous example will cause the error like:
error: Options --file and --base64 are mutually exclusive

Reported-by: Yanqiu Zhang <yanqzhan@redhat.com>
Signed-off-by: Han Han <hhan@redhat.com>
---
 docs/formatsecret.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/formatsecret.rst b/docs/formatsecret.rst
index aeeb67610d..606a9cc587 100644
--- a/docs/formatsecret.rst
+++ b/docs/formatsecret.rst
@@ -318,7 +318,7 @@ be omitted if the file contents are base64-encoded.
 
 ::
 
-   # virsh secret-set-value 6dd3e4a5-1d76-44ce-961f-f119f5aad935 --file --plain secretinfile
+   # virsh secret-set-value 6dd3e4a5-1d76-44ce-961f-f119f5aad935 --file secretinfile --plain
    Secret value set
 
 **WARNING** The following approach is **insecure** and deprecated. The secret
-- 
2.47.0