MT#13919 Use proper var in bootstrap

Change-Id: Ifaf625a2b3dfc2d9a87b041d95c8251c9a478d54
changes/49/2449/2
Andreas Granig 10 years ago
parent e3bc636550
commit fcd92c6ba4

@ -1408,7 +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;
$did =~ 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