aboutsummaryrefslogtreecommitdiff
path: root/qga/qapi-schema.json
diff options
context:
space:
mode:
authorMichael Roth <michael.roth@amd.com>2020-11-02 20:01:44 -0600
committerMichael Roth <michael.roth@amd.com>2020-11-02 20:01:44 -0600
commit0e3c94758e3851f0ab30d2a1e63a73284499775d (patch)
tree74713092db820247e043c84fee1e7b43162af7d4 /qga/qapi-schema.json
parent8d769ec777dccbff199711aba43aa6297fe4a0e0 (diff)
downloadqemu-0e3c94758e3851f0ab30d2a1e63a73284499775d.zip
qemu-0e3c94758e3851f0ab30d2a1e63a73284499775d.tar.gz
qemu-0e3c94758e3851f0ab30d2a1e63a73284499775d.tar.bz2
qga: add *reset argument to ssh-add-authorized-keys
I prefer 'reset' over 'clear', since 'clear' and keys may have some other relations or meaning. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> *fix disallowed g_assert* usage reported by checkpatch Signed-off-by: Michael Roth <michael.roth@amd.com>
Diffstat (limited to 'qga/qapi-schema.json')
-rw-r--r--qga/qapi-schema.json3
1 files changed, 2 insertions, 1 deletions
diff --git a/qga/qapi-schema.json b/qga/qapi-schema.json
index a2727ed..4ddea89 100644
--- a/qga/qapi-schema.json
+++ b/qga/qapi-schema.json
@@ -1352,6 +1352,7 @@
#
# @username: the user account to add the authorized keys
# @keys: the public keys to add (in OpenSSH/sshd(8) authorized_keys format)
+# @reset: ignore the existing content, set it with the given keys only
#
# Append public keys to user .ssh/authorized_keys on Unix systems (not
# implemented for other systems).
@@ -1361,7 +1362,7 @@
# Since: 5.2
##
{ 'command': 'guest-ssh-add-authorized-keys',
- 'data': { 'username': 'str', 'keys': ['str'] },
+ 'data': { 'username': 'str', 'keys': ['str'], '*reset': 'bool' },
'if': 'defined(CONFIG_POSIX)' }
##