virsh: secret: Add --plain switch for secret-set-value

Allow using the contents of --file without base64 decoding.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Peter Krempa
2020-01-24 16:28:19 +01:00
parent 3c5c90ca19
commit ff5f75f561
2 changed files with 16 additions and 3 deletions

View File

@@ -6563,11 +6563,12 @@ secret-set-value
.. code-block::
secret-set-value secret (--file filename | base64)
secret-set-value secret (--file filename [--plain] | base64)
Set the value associated with *secret* (specified by its UUID) to the value
Base64-encoded value *base64* or Base-64-encoded contents of file named
*filename*.
*filename*. Using the *--plain* flag is together with *--file* allows to use
the file contents directly as the secret value.
Note that *--file* and *base64* options are mutually exclusive.