Fixed and tested the monitor/unmonitor inputfunc from both GMCP and MSDP

This commit is contained in:
Griatch 2016-04-06 19:03:57 +02:00
parent 899ce2f138
commit 4883512342

View file

@ -118,7 +118,7 @@ class MonitorHandler(object):
"""
if not fieldname.startswith("db_") or not hasattr(obj, fieldname):
# an Attribute - we track it's db_value field
# an Attribute - we track its db_value field
obj = obj.attributes.get(fieldname, return_obj=True)
if not obj:
return