]> git.proxmox.com Git - pve-network.git/commit
only parse version if local sdn file exists
authorStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 5 May 2020 15:22:01 +0000 (17:22 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 5 May 2020 16:26:51 +0000 (18:26 +0200)
commit06c870867fc469a644c684afd7f2cc0edf135c14
treeefa84c53057b5a24fb47693afcd5e4a72dcff596
parentb27a097a56eaa3c3ce6bb1ee2dc931cd48451d46
only parse version if local sdn file exists

if a file does not exist PVE::Tools::file_read_firstline returns undef.

This happens e.g. if you install the libpve-network-perl package before
creating the local sdn file.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
PVE/Network/SDN/Zones.pm