public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Stefan Reiter <s.reiter@proxmox.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>,
	Fabian Ebner <f.ebner@proxmox.com>
Subject: Re: [pve-devel] [PATCH qemu-server] validate_cpu_conf: return config
Date: Wed, 12 Aug 2020 13:47:54 +0200	[thread overview]
Message-ID: <97dc2b3c-cb57-ec4d-a164-184b7827c508@proxmox.com> (raw)
In-Reply-To: <20200812114012.7727-1-f.ebner@proxmox.com>

duh, obviously ;)

sorry for missing this in my validator series,

Reviewed-by: Stefan Reiter <s.reiter@proxmox.com>

if a patch like this even needs it...

On 8/12/20 1:40 PM, Fabian Ebner wrote:
> as parse_property_string expects it to.
> 
> Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
> ---
> 
> Found while working on the migration tests.
> They already turn out to be useful :)
> 
>   PVE/QemuServer/CPUConfig.pm | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/PVE/QemuServer/CPUConfig.pm b/PVE/QemuServer/CPUConfig.pm
> index 4351cfd..66624fb 100644
> --- a/PVE/QemuServer/CPUConfig.pm
> +++ b/PVE/QemuServer/CPUConfig.pm
> @@ -191,6 +191,8 @@ sub validate_cpu_conf {
>       # required, but can't be forced in schema since it's encoded in section
>       # header for custom models
>       die "CPU is missing cputype\n" if !$cpu->{cputype};
> +
> +    return $cpu;
>   }
>   PVE::JSONSchema::register_format('pve-vm-cpu-conf', $cpu_fmt, \&validate_vm_cpu_conf);
>   sub validate_vm_cpu_conf {
> 




  reply	other threads:[~2020-08-12 11:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-12 11:40 Fabian Ebner
2020-08-12 11:47 ` Stefan Reiter [this message]
2020-08-12 11:55 ` [pve-devel] applied: " Fabian Grünbichler

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=97dc2b3c-cb57-ec4d-a164-184b7827c508@proxmox.com \
    --to=s.reiter@proxmox.com \
    --cc=f.ebner@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /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
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal