tests: zone: code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-11-29 11:39:58 +01:00
parent 1ed61845d4
commit 764dba5033

View file

@ -91,10 +91,7 @@ foreach my $test (@tests) {
my $name = $test;
my $expected = read_file("./$test/expected_sdn_interfaces");
my $result = "";
eval {
$result = PVE::Network::SDN::Zones::generate_etc_network_config();
};
my $result = eval { PVE::Network::SDN::Zones::generate_etc_network_config() };
if (my $err = $@) {
diag("got unexpected error - $err");