[pve-devel] [PATCH v2 container 1/3] use PVE::DataCenterConfig

Fabian Grünbichler f.gruenbichler at proxmox.com
Mon Nov 11 11:28:24 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:
    needs a dependency on libpve-cluster-perl

 debian/control        | 2 ++
 src/PVE/API2/LXC.pm   | 1 +
 src/PVE/LXC/Config.pm | 1 +
 src/PVE/LXC/Create.pm | 1 +
 4 files changed, 5 insertions(+)

diff --git a/debian/control b/debian/control
index 67293fa..be21837 100644
--- a/debian/control
+++ b/debian/control
@@ -3,6 +3,7 @@ Section: perl
 Priority: extra
 Maintainer: Proxmox Support Team <support at proxmox.com>
 Build-Depends: debhelper (>= 10~),
+               libpve-cluster-perl,
                libpve-common-perl (>= 6.0-4),
                libpve-guest-common-perl (>= 2.0-20),
                libpve-storage-perl,
@@ -18,6 +19,7 @@ Section: perl
 Priority: optional
 Architecture: all
 Depends: file,
+         libpve-cluster-perl,
          libpve-common-perl (>= 6.0-4),
          libpve-guest-common-perl (>= 3.0-2),
          libpve-storage-perl (>= 5.0-31),
diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm
index a8d9251..f73a9bf 100644
--- a/src/PVE/API2/LXC.pm
+++ b/src/PVE/API2/LXC.pm
@@ -8,6 +8,7 @@ use PVE::Tools qw(extract_param run_command);
 use PVE::Exception qw(raise raise_param_exc raise_perm_exc);
 use PVE::INotify;
 use PVE::Cluster qw(cfs_read_file);
+use PVE::DataCenterConfig;
 use PVE::AccessControl;
 use PVE::Firewall;
 use PVE::Storage;
diff --git a/src/PVE/LXC/Config.pm b/src/PVE/LXC/Config.pm
index 39de691..6203c42 100644
--- a/src/PVE/LXC/Config.pm
+++ b/src/PVE/LXC/Config.pm
@@ -5,6 +5,7 @@ use warnings;
 
 use PVE::AbstractConfig;
 use PVE::Cluster qw(cfs_register_file);
+use PVE::DataCenterConfig;
 use PVE::GuestHelpers;
 use PVE::INotify;
 use PVE::JSONSchema qw(get_standard_option);
diff --git a/src/PVE/LXC/Create.pm b/src/PVE/LXC/Create.pm
index 241ca88..c13f30d 100644
--- a/src/PVE/LXC/Create.pm
+++ b/src/PVE/LXC/Create.pm
@@ -7,6 +7,7 @@ use File::Path;
 use Fcntl;
 
 use PVE::Storage;
+use PVE::DataCenterConfig;
 use PVE::LXC;
 use PVE::LXC::Setup;
 use PVE::VZDump::ConvertOVZ;
-- 
2.20.1





More information about the pve-devel mailing list