From: Dietmar Maurer Date: Tue, 20 May 2014 05:35:54 +0000 (+0200) Subject: allow tests without cluster.fw and host.fw configuration X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=commitdiff_plain;h=de25c7622eecbed30fb7cc0615d00c234bb6eec4 allow tests without cluster.fw and host.fw configuration --- diff --git a/src/PVE/Firewall.pm b/src/PVE/Firewall.pm index 9b0e299..b477bc7 100644 --- a/src/PVE/Firewall.pm +++ b/src/PVE/Firewall.pm @@ -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);