]> git.proxmox.com Git - pve-ha-manager.git/commit - src/PVE/HA/LRM.pm
Move exec_resource_agent from environment classes to LRM
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 22 Jan 2016 16:06:42 +0000 (17:06 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 26 Jan 2016 08:45:31 +0000 (09:45 +0100)
commit2a045f55cfbd3cfd45586bbb0b5976b68e08cf69
treeabe87a714bea30fdfcd3ca38e2831dc47a5f892c
parentf7cb19c6253c1f24d35ce01d5b7c3926c0f4e249
Move exec_resource_agent from environment classes to LRM

With the changes and preparation work from the previous commits
we can now move the quite important method exec_resource_agent
from the Env classes to the LRM where it get's called.

The main advantage of this is that it now underlies regression
tests and that we do not have two separate methods where it
- does not make sense as agents them self should be virtualized
  not the method executing them
- adds more work as the must (or at least should) be in sync

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