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

Han Han posted 1 patch 2 weeks, 2 days 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 2 weeks, 2 days 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
Re: [PATCH] docs: formatsecret: Fix an example of secret-set-value
Posted by Michal Prívozník 1 week, 4 days ago
On 11/21/24 03:27, Han Han wrote:
> 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(-)
> 

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>

and merged.

Michal