]> git.proxmox.com Git - pve-guest-common.git/commit
abstractconfig: add load_current_config and load_snapshot_config
authorOguz Bektas <o.bektas@proxmox.com>
Mon, 14 Oct 2019 08:28:34 +0000 (10:28 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Oct 2019 07:28:34 +0000 (09:28 +0200)
commit61264e82be7f2c94611f6b91a3663a2ca0dee488
treed19b5b940dc126834742f23b7a4e49ca6faee0ef
parent810ee08809ff7cb2278919998b3951dcbb0786ab
abstractconfig: add load_current_config and load_snapshot_config

this code is already used by qemu-server's GET config API call. it is
however better to split this into to methods and decide what to run in
the API call.

this general implementation uses some $class helpers which allow to abstract
away the difference in the child classes. this will be used for
containers once they can do pending changes.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
PVE/AbstractConfig.pm