]> git.proxmox.com Git - pve-firewall.git/commitdiff
allow tests without cluster.fw and host.fw configuration
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 20 May 2014 05:35:54 +0000 (07:35 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 20 May 2014 05:35:54 +0000 (07:35 +0200)
src/PVE/Firewall.pm

index 9b0e299d76ad11e04a217999d978043e8c42855b..b477bc7e31167327da0d58de6d437f1a943f368a 100644 (file)
@@ -2603,11 +2603,9 @@ sub compile {
     if ($vmdata) { # test mode
        my $testdir = $vmdata->{testdir} || die "no test directory specified";
        my $filename = "$testdir/cluster.fw";
     if ($vmdata) { # test mode
        my $testdir = $vmdata->{testdir} || die "no test directory specified";
        my $filename = "$testdir/cluster.fw";
-       die "missing test file '$filename'\n" if ! -f $filename;
        $cluster_conf = load_clusterfw_conf($filename);
 
        $filename = "$testdir/host.fw";
        $cluster_conf = load_clusterfw_conf($filename);
 
        $filename = "$testdir/host.fw";
-       die "missing test file '$filename'\n" if ! -f $filename;
        $hostfw_conf = load_hostfw_conf($filename);
 
        $vmfw_configs = read_vm_firewall_configs($vmdata, $testdir);
        $hostfw_conf = load_hostfw_conf($filename);
 
        $vmfw_configs = read_vm_firewall_configs($vmdata, $testdir);