]> git.proxmox.com Git - pve-network.git/commit - PVE/Network/SDN/Controllers/EvpnPlugin.pm
evpn controller: avoid declaration in conditional statement
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 31 Aug 2022 08:56:27 +0000 (10:56 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 31 Aug 2022 08:56:28 +0000 (10:56 +0200)
commitbe39cee9ac518ba2268ef999076c4e946ac6356b
tree7bcd3feee4d7e9dbdfb66137c2c1a4dd5b2fb265
parent359796b052f64583c0328862c68de2d3a9d8d35e
evpn controller: avoid declaration in conditional statement

those are quite dangerous, as the variable will keep the value from
last time the evaluation was true and still evaluate to that old, out
of date value the next time, if the condition is false then.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Network/SDN/Controllers/EvpnPlugin.pm