device property in _no/_only fails with error

This commit is contained in:
Oliver Gorwits
2014-01-19 16:04:41 +00:00
parent 642546fd24
commit 078449d56d
2 changed files with 11 additions and 1 deletions

View File

@@ -1,3 +1,13 @@
2.022000
[NEW FEATURES]
*
[BUG FIXES]
* [#85] device property in _no/_only fails with error (R. Kerr)
2.021001
[NEW FEATURES]

View File

@@ -92,7 +92,7 @@ sub check_acl {
# lazy version of vendor: and model:
if ($device->can($prop) and defined $device->prop
and $device->prop =~ m/^$match$/) {
and $device->$prop =~ m/^$match$/) {
return 1;
}