]> git.proxmox.com Git - pve-guest-common.git/commit
abstractconfig: add pending changes related helpers
authorOguz Bektas <o.bektas@proxmox.com>
Mon, 14 Oct 2019 08:28:33 +0000 (10:28 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Oct 2019 07:28:34 +0000 (09:28 +0200)
commit810ee08809ff7cb2278919998b3951dcbb0786ab
tree9ec6e3a98f1625b9b56afe8b115346f49e7fcf76
parent1aa76f2f0b77f2806a792137cba7b657b6d059cf
abstractconfig: add pending changes related helpers

use a better naming scheme for methods from qemuserver:

split_flagged_list -> parse_pending_delete
join_flagged_list -> print_pending_delete
vmconfig_delete_pending_option -> add_to_pending_delete
vmconfig_undelete_pending_option -> remove_from_pending_delete
vmconfig_cleanup_pending -> cleanup_pending

parse_pending_delete now has a better representation of the force value,
which is encoded in a perl hash i.e. $conf->{$opt}->{force} = 1 or 0
depending on if the string in config has '!' or not.

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