]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: formatsecret: Fix an example of secret-set-value
authorHan Han <hhan@redhat.com>
Thu, 21 Nov 2024 02:27:36 +0000 (10:27 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 25 Nov 2024 09:38:40 +0000 (10:38 +0100)
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>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/formatsecret.rst

index aeeb67610d4a7b637c047037fe598d8f76a6b435..606a9cc587b42946699b25cdc5de55e100878208 100644 (file)
@@ -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