cleanup previous commit
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 27 Jan 2017 14:21:54 +0000 (15:21 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 27 Jan 2017 14:21:54 +0000 (15:21 +0100)
src/PVE/INotify.pm

index 44d0f2f..c2055b6 100644 (file)
@@ -1054,7 +1054,7 @@ sub __interface_to_string {
        # not printing out options
     } elsif ($d->{type} eq 'bridge') {
 
-       $d->{bridge_ports} =~ s/([;,\s])+/ /g;
+       $d->{bridge_ports} =~ s/[;,\s]+/ /g;
        my $ports = $d->{bridge_ports} || 'none';
        $raw .= "\tbridge_ports $ports\n";
        $done->{bridge_ports} = 1;
@@ -1074,7 +1074,7 @@ sub __interface_to_string {
     
     } elsif ($d->{type} eq 'bond') {
 
-       $d->{slaves} =~ s/([;,\s])+/ /g;
+       $d->{slaves} =~ s/[;,\s]+/ /g;
        my $slaves = $d->{slaves} || 'none';
        $raw .= "\tslaves $slaves\n";
        $done->{slaves} = 1;