diff options
author | John Estabrook <jestabro@vyos.io> | 2021-04-01 12:11:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-01 12:11:21 -0500 |
commit | d586300ba521a9540d7aaccff17f78abb9a4ecbd (patch) | |
tree | 741dda98789c63f52d0adf51d0a4f9968bc7f43c | |
parent | 6e81c80137d39333dc44413da47885b404c88b5c (diff) | |
parent | 6019ab063d8f26172ffc3993fa25a57fcd5782aa (diff) | |
download | vyatta-cfg-system-d586300ba521a9540d7aaccff17f78abb9a4ecbd.tar.gz vyatta-cfg-system-d586300ba521a9540d7aaccff17f78abb9a4ecbd.zip |
Merge pull request #144 from jestabro/T2838
migration: T2838: fix parsing of quoted config value for hw-id
-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; } |