diff options
author | John Estabrook <jestabro@vyos.io> | 2021-04-01 11:28:32 -0500 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-04-03 11:31:14 +0200 |
commit | cd11187d9adf34fc8f741b1c7e125bacabdad2ae (patch) | |
tree | f5b7838587efffac39804b66f0adb75dd3746108 | |
parent | e5aba24519d5f8643fb4fcf410ec87c6129fa5af (diff) | |
download | vyatta-cfg-system-cd11187d9adf34fc8f741b1c7e125bacabdad2ae.tar.gz vyatta-cfg-system-cd11187d9adf34fc8f741b1c7e125bacabdad2ae.zip |
migration: T2838: fix parsing of quoted config value for hw-id
(cherry picked from commit 6019ab063d8f26172ffc3993fa25a57fcd5782aa)
-rwxr-xr-x | scripts/vyatta_net_name | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |