[pve-devel] applied: [PATCH pve-common] Inotify: read_interfaces : remove trailing whitespaces
Thomas Lamprecht
t.lamprecht at proxmox.com
Tue Apr 7 18:13:45 CEST 2020
On 4/5/20 10:33 AM, Alexandre Derumier wrote:
> Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
> ---
> src/PVE/INotify.pm | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm
> index 3fa5af6..871deda 100644
> --- a/src/PVE/INotify.pm
> +++ b/src/PVE/INotify.pm
> @@ -924,6 +924,8 @@ sub __read_etc_network_interfaces {
>
> while (defined ($line = <$fh>)) {
> chomp $line;
> + $line =~ s/\s+$//;
> +
> if ($line =~ m/^\s*#(.*?)\s*$/) {
> $f->{comments} = '' if !$f->{comments};
> my $comment = decode('UTF-8', $1);
>
applied, but dropped the "chomp" line as followup, it really shouldn't be required
anymore.. thanks!
More information about the pve-devel
mailing list