mirror of
git://git.proxmox.com/git/pve-network.git
synced 2025-01-21 22:03:53 +03:00
controllers: die if opening network interface config fails
we should not continue in that case.. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
a0216bf276
commit
1e289d2303
@ -81,7 +81,7 @@ sub generate_controller_config {
|
||||
|
||||
# read main config for physical interfaces
|
||||
my $current_config_file = "/etc/network/interfaces";
|
||||
my $fh = IO::File->new($current_config_file);
|
||||
my $fh = IO::File->new($current_config_file) or die "failed to open $current_config_file - $!\n";
|
||||
my $interfaces_config = PVE::INotify::read_etc_network_interfaces($current_config_file, $fh);
|
||||
$fh->close();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user