From 6019ab063d8f26172ffc3993fa25a57fcd5782aa Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Thu, 1 Apr 2021 11:28:32 -0500 Subject: migration: T2838: fix parsing of quoted config value for hw-id --- scripts/vyatta_net_name | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/vyatta_net_name b/scripts/vyatta_net_name index 825bf86f..d61ac6a3 100755 --- a/scripts/vyatta_net_name +++ b/scripts/vyatta_net_name @@ -55,7 +55,7 @@ sub get_hwid_from_children { my $children = shift; foreach my $attr (@$children) { - next unless ($attr->{'name'} =~ /^hw-id ([0-9a-f:]+)/); + next unless (($attr->{'name'} =~ /^hw-id ([0-9a-f:]+)/) || ($attr->{'name'} =~ /^hw-id "([0-9a-f:]+)"/)); return $1; } -- cgit v1.2.3