[pve-devel] [PATCH v2 ha-manager 1/2] use PVE::DataCenterConfig

Fabian Grünbichler f.gruenbichler at proxmox.com
Mon Nov 11 11:28:12 CET 2019


to make sure that the corresponding cfs_read_file works() works.

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---

Notes:
    requires versioned depends on libpve-cluster-perl

 debian/control         | 2 ++
 src/PVE/HA/Env/PVE2.pm | 1 +
 2 files changed, 3 insertions(+)

diff --git a/debian/control b/debian/control
index 002c046..38690cd 100644
--- a/debian/control
+++ b/debian/control
@@ -6,6 +6,7 @@ Build-Depends: debhelper (>= 10~),
                libglib-perl,
                libgtk3-perl,
                libpve-access-control,
+               libpve-cluster-perl,
                libpve-common-perl,
                lintian,
                pve-cluster,
@@ -17,6 +18,7 @@ Section: perl
 Priority: optional
 Architecture: any
 Depends: libjson-perl,
+         libpve-cluster-perl,
          libpve-common-perl,
          pve-cluster (>= 3.0-17),
 # TODO: for PVE 6 re-add thos two, we just removed them to avoid a dpkg issue
diff --git a/src/PVE/HA/Env/PVE2.pm b/src/PVE/HA/Env/PVE2.pm
index 796acd9..aac39d6 100644
--- a/src/PVE/HA/Env/PVE2.pm
+++ b/src/PVE/HA/Env/PVE2.pm
@@ -9,6 +9,7 @@ use IO::Socket::UNIX;
 use PVE::SafeSyslog;
 use PVE::Tools;
 use PVE::Cluster qw(cfs_register_file cfs_read_file cfs_write_file cfs_lock_file);
+use PVE::DataCenterConfig;
 use PVE::INotify;
 use PVE::RPCEnvironment;
 
-- 
2.20.1





More information about the pve-devel mailing list