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 9b0e299..b477bc7 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";
-       die "missing test file '$filename'\n" if ! -f $filename;
        $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);