[pve-devel] [PATCH pve-common] Inotify: read_interfaces : remove trailing whitespaces
Alexandre Derumier
aderumier at odiso.com
Sun Apr 5 10:33:00 CEST 2020
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);
--
2.20.1
More information about the pve-devel
mailing list