]> git.proxmox.com Git - pve-guest-common.git/commit
refactor parse_pending_delete to sane implemenation
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Oct 2019 14:43:25 +0000 (16:43 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Oct 2019 15:48:03 +0000 (17:48 +0200)
commit7b9d1adeb25d0bc8b65292f27e457dec74e85ff8
treecba131aaab142c6a35c366166bd36b6a176830e3
parentfe82406191f397cbfedfe02fe69933b12d62207d
refactor parse_pending_delete to sane implemenation

this was quite the mess, a perl greedy match over non-whitespace
character is equivalent to a split on whitespace on, but the latter
is much easier to grasp when looking at this the first time.

Do a real for loop with real variable names and less nest everything
into one line.

the test added in the previous commit should give use the safety net
for that cleanup.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/AbstractConfig.pm