]> git.proxmox.com Git - qemu-server.git/commit
fix #2671: include CPU format in man page again
authorStefan Reiter <s.reiter@proxmox.com>
Thu, 25 Jun 2020 11:35:41 +0000 (13:35 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 8 Jul 2020 08:28:20 +0000 (10:28 +0200)
commit7b8c4de3b8dfc36dc67834a8da0191e247cdbe56
tree67d832c7b4d8e038f8ed4bdcc1f93c41723ccac4
parentfd98147d6b65498d1050e4ac6b835a072ed45032
fix #2671: include CPU format in man page again

Use the new register_format(3) call to use a validator (instead of a
parser) for 'pve-(vm-)?cpu-conf'. This way the $cpu_fmt hash can be used for
generating the documentation, while still applying the same verification
rules as before.

Since the function no longer parses but only verifies, the parsing in
print_cpu_device/get_cpu_options has to go via JSONSchema directly.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
PVE/QemuServer/CPUConfig.pm