]> git.proxmox.com Git - pve-ha-manager.git/commit
factor out resource config check and default set code
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 28 Oct 2016 08:39:37 +0000 (10:39 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 28 Oct 2016 09:00:31 +0000 (11:00 +0200)
commit85f6e9ca26f3795eff6772e584c09a49b5def1af
treeb586c5934ba296cb961e2ef2f2249ee133f7e0ff
parent65242be6f32d698955ccd9068cebe394963721c2
factor out resource config check and default set code

Factor the code which does basic checks and sets default settings
out from the PVE2 environment class to the Config class as
read_and_check_resources_config method.

We can reuse this in the HA API status call.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/Config.pm
src/PVE/HA/Env/PVE2.pm