* [pve-devel] [PATCH qemu-server] validate_cpu_conf: return config
@ 2020-08-12 11:40 Fabian Ebner
2020-08-12 11:47 ` Stefan Reiter
2020-08-12 11:55 ` [pve-devel] applied: " Fabian Grünbichler
0 siblings, 2 replies; 3+ messages in thread
From: Fabian Ebner @ 2020-08-12 11:40 UTC (permalink / raw)
To: pve-devel
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 {
--
2.20.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [pve-devel] [PATCH qemu-server] validate_cpu_conf: return config
2020-08-12 11:40 [pve-devel] [PATCH qemu-server] validate_cpu_conf: return config Fabian Ebner
@ 2020-08-12 11:47 ` Stefan Reiter
2020-08-12 11:55 ` [pve-devel] applied: " Fabian Grünbichler
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Reiter @ 2020-08-12 11:47 UTC (permalink / raw)
To: Proxmox VE development discussion, Fabian Ebner
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 {
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [pve-devel] applied: [PATCH qemu-server] validate_cpu_conf: return config
2020-08-12 11:40 [pve-devel] [PATCH qemu-server] validate_cpu_conf: return config Fabian Ebner
2020-08-12 11:47 ` Stefan Reiter
@ 2020-08-12 11:55 ` Fabian Grünbichler
1 sibling, 0 replies; 3+ messages in thread
From: Fabian Grünbichler @ 2020-08-12 11:55 UTC (permalink / raw)
To: Proxmox VE development discussion
with r-b Stefan
On August 12, 2020 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 {
> --
> 2.20.1
>
>
>
> _______________________________________________
> pve-devel mailing list
> pve-devel@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-08-12 11:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-12 11:40 [pve-devel] [PATCH qemu-server] validate_cpu_conf: return config Fabian Ebner
2020-08-12 11:47 ` Stefan Reiter
2020-08-12 11:55 ` [pve-devel] applied: " Fabian Grünbichler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox