]> git.proxmox.com Git - pve-container.git/commit
alpine: setup net: pass whole config to parent method
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 9 Sep 2020 17:55:41 +0000 (19:55 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 9 Sep 2020 18:54:57 +0000 (20:54 +0200)
commit264755b810515ff359f8fd5c389113d9b905fe19
tree2eb4fbec7b0fe89810220edb820ba2404228495d
parent229ab7fa285b6f4726b03079d9141e5bbb22058f
alpine: setup net: pass whole config to parent method

We expected the whole $conf to be passed in a call to setup_network,
a bit ago it worked if their where only the netX keys present, for
some plugin that still is the case.
But, in the Debian version, reused by Alpine, we now check if the CT
distro version is recent enough to support (or need) the address in
CIDR format.
So, at least "ostype" needs to be passed to, else we get ugly
warnings in the syslog (or the recently added --debug log CLI switch)

Just pass the whole config, the setup_network method need to cope
with that anyway.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/LXC/Setup/Alpine.pm