]> git.proxmox.com Git - pve-container.git/commit
api: config: use shared guesthelpers in GET call
authorOguz Bektas <o.bektas@proxmox.com>
Mon, 14 Oct 2019 08:28:44 +0000 (10:28 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Oct 2019 18:44:36 +0000 (20:44 +0200)
commit52e8da5d58420b119f2ca7a62c6e66e893c16aac
tree3cbb0d6080e9021971ef9075791b974a5568dc7a
parentf9fc67e9d7658993f7af4a7d1be8e1edec53c1d7
api: config: use shared guesthelpers in GET call

since containers can also have pending changes now, we need a method to
get the current applied config as well as the one with the pending
changes inside. this makes the GET config api more consistent with
qemu-server's by reusing load_current_config and load_snapshot_config from
AbstractConfig.
to decide which method to call, we look at the parameters.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
src/PVE/API2/LXC/Config.pm