[pve-devel] [PATCH v2 ha-manager 15/15] resources: add missing PVE::Cluster use statements

Fiona Ebner f.ebner at proxmox.com
Fri Nov 18 08:48:48 CET 2022


Am 17.11.22 um 15:00 schrieb Fiona Ebner:
> Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
> ---
> 
> New in v2.
> 
>  src/PVE/HA/Resources/PVECT.pm | 2 ++
>  src/PVE/HA/Resources/PVEVM.pm | 2 ++
>  2 files changed, 4 insertions(+)
> 
> diff --git a/src/PVE/HA/Resources/PVECT.pm b/src/PVE/HA/Resources/PVECT.pm
> index 4c9530d..e77d98c 100644
> --- a/src/PVE/HA/Resources/PVECT.pm
> +++ b/src/PVE/HA/Resources/PVECT.pm
> @@ -3,6 +3,8 @@ package PVE::HA::Resources::PVECT;
>  use strict;
>  use warnings;
>  
> +use PVE::Cluster;
> +
>  use PVE::HA::Tools;
>  
>  BEGIN {

Might be better added to the BEGIN block here, and not pull it in for
doc generation in the spirit of a1c8862 ("buildsys: don't pull qemu/lxc
during doc-generation")

> diff --git a/src/PVE/HA/Resources/PVEVM.pm b/src/PVE/HA/Resources/PVEVM.pm
> index 49e4a1d..f405d86 100644
> --- a/src/PVE/HA/Resources/PVEVM.pm
> +++ b/src/PVE/HA/Resources/PVEVM.pm
> @@ -3,6 +3,8 @@ package PVE::HA::Resources::PVEVM;
>  use strict;
>  use warnings;
>  
> +use PVE::Cluster;
> +
>  use PVE::HA::Tools;
>  
>  BEGIN {





More information about the pve-devel mailing list