From: Konstantin Kostiuk <kkostiuk@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: qemu-devel@nongnu.org, michael.roth@amd.com, eblake@redhat.com,
philmd@linaro.org
Subject: Re: [PATCH 2/2] qga: Improve error for guest-set-user-password parameter @crypted
Date: Thu, 12 Sep 2024 10:55:53 +0300 [thread overview]
Message-ID: <CAPMcbCqe=-ufnED2juwyAWS4PrLknutqwoyUTj5RUwUM==BPTw@mail.gmail.com> (raw)
In-Reply-To: <20240911131206.2503035-3-armbru@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1545 bytes --]
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
On Wed, Sep 11, 2024 at 4:12 PM Markus Armbruster <armbru@redhat.com> wrote:
> The Windows version of guest-set-user-password rejects argument
> "crypted": true with the rather useless "this feature or command is
> not currently supported". Improve to "'crypted' must be off on this
> host".
>
> QERR_UNSUPPORTED is now unused. Drop.
>
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
> include/qapi/qmp/qerror.h | 3 ---
> qga/commands-win32.c | 2 +-
> 2 files changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/include/qapi/qmp/qerror.h b/include/qapi/qmp/qerror.h
> index 38e89762b3..101c1141b9 100644
> --- a/include/qapi/qmp/qerror.h
> +++ b/include/qapi/qmp/qerror.h
> @@ -26,7 +26,4 @@
> #define QERR_PROPERTY_VALUE_OUT_OF_RANGE \
> "Property %s.%s doesn't take value %" PRId64 " (minimum: %" PRId64 ",
> maximum: %" PRId64 ")"
>
> -#define QERR_UNSUPPORTED \
> - "this feature or command is not currently supported"
> -
> #endif /* QERROR_H */
> diff --git a/qga/commands-win32.c b/qga/commands-win32.c
> index 61b36da469..038beb8cfa 100644
> --- a/qga/commands-win32.c
> +++ b/qga/commands-win32.c
> @@ -1914,7 +1914,7 @@ void qmp_guest_set_user_password(const char
> *username,
> GError *gerr = NULL;
>
> if (crypted) {
> - error_setg(errp, QERR_UNSUPPORTED);
> + error_setg(errp, "'crypted' must be off on this host");
> return;
> }
>
> --
> 2.46.0
>
>
[-- Attachment #2: Type: text/html, Size: 2170 bytes --]
next prev parent reply other threads:[~2024-09-12 7:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-11 13:12 [PATCH 0/2] Finish eliminating QERR_UNSUPPORTED Markus Armbruster
2024-09-11 13:12 ` [PATCH 1/2] qga/qapi-schema: Drop obsolete note on "unsupported" errors Markus Armbruster
2024-09-12 7:55 ` Konstantin Kostiuk
2024-09-11 13:12 ` [PATCH 2/2] qga: Improve error for guest-set-user-password parameter @crypted Markus Armbruster
2024-09-11 15:13 ` Philippe Mathieu-Daudé
2024-09-12 7:55 ` Konstantin Kostiuk [this message]
2024-10-02 7:48 ` [PATCH 0/2] Finish eliminating QERR_UNSUPPORTED Markus Armbruster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAPMcbCqe=-ufnED2juwyAWS4PrLknutqwoyUTj5RUwUM==BPTw@mail.gmail.com' \
--to=kkostiuk@redhat.com \
--cc=armbru@redhat.com \
--cc=eblake@redhat.com \
--cc=michael.roth@amd.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).