[pve-devel] central cipher config

Stefan Priebe - Profihost AG s.priebe at profihost.ag
Tue Oct 30 11:24:56 CET 2012


Am 30.10.2012 11:20, schrieb Dietmar Maurer:
>> Why not? What is the problem to use:
>>
>> use PVE::Cluster;
>>
>> my $conf = PVE::Cluster::cfs_read_file('datacenter.cfg');
>
> That would create a circular package dependency!
>
> Note: pve-cluster depends on pve-common

*argh* right. Mhm i think cfs_read_file should be a method in 
pve-common. Wouldn't that make sense?

To make that change not too hard we can still have:

package PVE::Cluster;

..

# here for backward compatiblity
sub cfs_read_file {
   return PVE::Tools::cfs_read_file(@_);
}

..

Stefan



More information about the pve-devel mailing list