]> git.proxmox.com Git - pve-manager-legacy.git/commit
vzdump: included_guest: return empty hash if no guests selected
authorAaron Lauterer <a.lauterer@proxmox.com>
Thu, 9 Jul 2020 11:21:28 +0000 (13:21 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 9 Jul 2020 11:30:47 +0000 (13:30 +0200)
commit597bc2b007ec965ffe208ef71984e34cb1a24f6d
tree469f540fdbdf4168caa7f42c524055de6b966c80
parentf257f54d489c4d179c942048deea0e1d8dbdbd25
vzdump: included_guest: return empty hash if no guests selected

This will fix the behaviour when calling `vzdump --stop` to cause all
local guests to be backed up.

When refactoring this logic in commit be308647, the assumption was that
every call will have one of the following parameters set: pool, list of
VMIDs or all (intentional or when exclude is used).

There is an addtional possibility, that vzdump is called with only
--stop. Thus there are no other parameters that would indicate which
VMIDs to include.

In this case we want to return the empty hash.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
PVE/VZDump.pm