[pve-devel] applied: [PATCH common] fix #2374: bridge-ports is assumed to be defined

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Jun 15 14:28:53 CEST 2020


Am 6/10/20 um 4:03 PM schrieb Mira Limbeck:
> bridge-ports is an optional parameter but was assumed to be defined in
> the code. This resulted in 'use of uninitialized value' warnings.
> 
> By reordering of the $ports definition before the replace, we get rid of
> the 'use of uninitialized value' when no bridge-port is specified.
> 
> In the second case we set it to an empty string when it is undefined.
> 
> Signed-off-by: Mira Limbeck <m.limbeck at proxmox.com>
> ---
>  src/PVE/INotify.pm | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 

applied, thanks!




More information about the pve-devel mailing list