[pve-devel] [PATCH ha-manager v2 03/12] config: group and sort use statements

Daniel Kral d.kral at proxmox.com
Tue Jan 20 16:27:35 CET 2026


Group and sort use statements according to our Perl Style guide [0].

[0] https://pve.proxmox.com/wiki/Perl_Style_Guide#Module_Dependencies

Signed-off-by: Daniel Kral <d.kral at proxmox.com>
Reviewed-by: Fiona Ebner <f.ebner at proxmox.com>
---
changes v1 -> v2: none

 src/PVE/HA/Config.pm | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/PVE/HA/Config.pm b/src/PVE/HA/Config.pm
index 844ab1b1..3a4b7019 100644
--- a/src/PVE/HA/Config.pm
+++ b/src/PVE/HA/Config.pm
@@ -5,12 +5,13 @@ use warnings;
 
 use JSON;
 
-use PVE::HA::Tools;
+use PVE::Cluster qw(cfs_register_file cfs_read_file cfs_write_file cfs_lock_file);
+
 use PVE::HA::Groups;
+use PVE::HA::Resources;
 use PVE::HA::Rules;
 use PVE::HA::Rules::ResourceAffinity qw(get_affinitive_resources);
-use PVE::Cluster qw(cfs_register_file cfs_read_file cfs_write_file cfs_lock_file);
-use PVE::HA::Resources;
+use PVE::HA::Tools;
 
 my $manager_status_filename = "ha/manager_status";
 my $ha_groups_config = "ha/groups.cfg";
-- 
2.47.3





More information about the pve-devel mailing list