MT#13919 Strip dashes in mac during bootstrap

Change-Id: Iee4acec4fade699f3ab34542dcd7629ca907fb21
changes/41/2141/7
Andreas Granig 10 years ago
parent 79dd3dc3d0
commit c689ab965c

@ -1408,6 +1408,7 @@ sub dev_field_bootstrap :Chained('/') :PathPart('device/autoprov/bootstrap') :Ar
$did =~ s/^([^\=]+)\=0$/$1/;
$did = lc $did;
$did =~ s/\-[a-z]+$//;
$id =~ s/\-//g;
if($did =~ /^[0-9a-f]{12}$/) {
$c->log->debug("identified bootstrap path part '$did' as valid device id");
$id = $did;

Loading…
Cancel
Save