mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 15:58:20 +00:00
use PVE::DataCenterConfig
to make sure that the corresponding cfs_read_file works() works. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
0f9ac2dfc5
commit
3ac3653e63
@ -4,6 +4,7 @@ use strict;
|
||||
use warnings;
|
||||
|
||||
use PVE::pvecfg;
|
||||
use PVE::DataCenterConfig;
|
||||
use PVE::RESTHandler;
|
||||
use PVE::JSONSchema;
|
||||
|
||||
|
@ -13,6 +13,7 @@ use LWP::UserAgent;
|
||||
use PVE::pvecfg;
|
||||
use PVE::Tools qw(extract_param);
|
||||
use PVE::Cluster;
|
||||
use PVE::DataCenterConfig;
|
||||
use PVE::SafeSyslog;
|
||||
use PVE::INotify;
|
||||
use PVE::Exception;
|
||||
|
@ -7,6 +7,7 @@ use JSON;
|
||||
|
||||
use PVE::API2Tools;
|
||||
use PVE::Cluster qw(cfs_register_file cfs_lock_file cfs_read_file cfs_write_file);
|
||||
use PVE::DataCenterConfig;
|
||||
use PVE::Exception qw(raise_param_exc);
|
||||
use PVE::Firewall;
|
||||
use PVE::HA::Config;
|
||||
@ -77,7 +78,7 @@ if ($have_sdn) {
|
||||
});
|
||||
}
|
||||
|
||||
my $dc_schema = PVE::Cluster::get_datacenter_schema();
|
||||
my $dc_schema = PVE::DataCenterConfig::get_datacenter_schema();
|
||||
my $dc_properties = {
|
||||
delete => {
|
||||
type => 'string', format => 'pve-configid-list',
|
||||
|
@ -47,6 +47,7 @@ use PVE::API2::Hardware;
|
||||
use Digest::MD5;
|
||||
use Digest::SHA;
|
||||
use PVE::API2::Disks;
|
||||
use PVE::DataCenterConfig;
|
||||
use JSON;
|
||||
use Socket;
|
||||
|
||||
|
@ -13,6 +13,7 @@ use PVE::ProcFSTools;
|
||||
use PVE::Exception qw(raise_param_exc);
|
||||
use PVE::INotify;
|
||||
use PVE::Cluster qw (cfs_read_file cfs_write_file);
|
||||
use PVE::DataCenterConfig;
|
||||
use PVE::AccessControl;
|
||||
use PVE::Storage;
|
||||
use PVE::JSONSchema qw(get_standard_option);
|
||||
|
@ -8,6 +8,7 @@ use PVE::Exception qw(raise_param_exc);
|
||||
use PVE::Tools;
|
||||
use PVE::INotify;
|
||||
use PVE::Cluster;
|
||||
use PVE::DataCenterConfig;
|
||||
use PVE::RPCEnvironment;
|
||||
use Digest::MD5 qw(md5_hex);
|
||||
use URI;
|
||||
|
@ -8,6 +8,7 @@ use PVE::APLInfo;
|
||||
use PVE::SafeSyslog;
|
||||
use PVE::Tools qw(extract_param);
|
||||
use PVE::Cluster;
|
||||
use PVE::DataCenterConfig;
|
||||
use PVE::INotify;
|
||||
use PVE::RPCEnvironment;
|
||||
use PVE::JSONSchema qw(get_standard_option);
|
||||
|
@ -11,6 +11,7 @@ use URI;
|
||||
use URI::QueryParam;
|
||||
use Data::Dumper;
|
||||
use PVE::Cluster;
|
||||
use PVE::DataCenterConfig;
|
||||
use PVE::APIServer::Utils;
|
||||
use PVE::API2;
|
||||
use PVE::APIServer::Formatter;
|
||||
|
@ -11,6 +11,7 @@ use File::Path;
|
||||
use PVE::RPCEnvironment;
|
||||
use PVE::Storage;
|
||||
use PVE::Cluster qw(cfs_read_file);
|
||||
use PVE::DataCenterConfig;
|
||||
use POSIX qw(strftime);
|
||||
use Time::Local;
|
||||
use PVE::JSONSchema qw(get_standard_option);
|
||||
|
@ -6,6 +6,7 @@ use PVE::Tools;
|
||||
use PVE::SafeSyslog;
|
||||
use PVE::AccessControl;
|
||||
use PVE::Cluster qw (cfs_read_file);
|
||||
use PVE::DataCenterConfig;
|
||||
|
||||
# NOTE: we need to run this with setgid www-data
|
||||
# else we cant read /etc/pve/user.cfg
|
||||
|
@ -12,6 +12,7 @@ use PVE::Certificate;
|
||||
use PVE::NodeConfig;
|
||||
use PVE::INotify;
|
||||
use PVE::Cluster;
|
||||
use PVE::DataCenterConfig;
|
||||
use PVE::APLInfo;
|
||||
use PVE::SafeSyslog;
|
||||
use PVE::RPCEnvironment;
|
||||
|
Loading…
Reference in New Issue
Block a user