]> git.proxmox.com Git - pve-guest-common.git/commit
abstract config: add method to calculate derived properties from a config
authorFiona Ebner <f.ebner@proxmox.com>
Tue, 28 Feb 2023 10:54:07 +0000 (11:54 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 7 Jun 2023 17:35:04 +0000 (19:35 +0200)
commit56f09314cb4b36b7ec8f16929eb9d7f4dbf48832
tree50356720900978033301a393c963955f38557e02
parentf9c40120f1b28bde28598d07a17af6329e39f363
abstract config: add method to calculate derived properties from a config

HA manager currently needs to know about internal details about the
configs and how the properties are calculated. With this method, those
details are abstracted away, allowing to change the configuration
structure. In particular, QemuConfig's 'memory' can be turned into
a property string without HA manager needing to know about it (once HA
manager switched to using this mehtod).

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
src/PVE/AbstractConfig.pm