]> git.proxmox.com Git - pve-firewall.git/blobdiff - src/PVE/Firewall.pm
Use cfs_config_path from PVE::QemuConfig
[pve-firewall.git] / src / PVE / Firewall.pm
index a7faeaf40499cbebf840ca7d321acc9e870b80ca..428ffb22f0670f89884cacecc05641bebfc4d2aa 100644 (file)
@@ -28,6 +28,7 @@ my $clusterfw_conf_filename = "$pvefw_conf_dir/cluster.fw";
 my $have_qemu_server;
 eval {
     require PVE::QemuServer;
+    require PVE::QemuConfig;
     $have_qemu_server = 1;
 };
 
@@ -2707,7 +2708,7 @@ sub read_local_vm_config {
        next if !$d->{type};
        if ($d->{type} eq 'qemu') {
            if ($have_qemu_server) {
-               my $cfspath = PVE::QemuServer::cfs_config_path($vmid);
+               my $cfspath = PVE::QemuConfig->cfs_config_path($vmid);
                if (my $conf = PVE::Cluster::cfs_read_file($cfspath)) {
                    $qemu->{$vmid} = $conf;
                }