Commit eaf89850 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Merge branch 'cherry-pick-e6ae586b' into 'release-22.1'

release-22.1:Backport!6406

See merge request noc/noc!6408
parents e5285cb3 64c91dbe
......@@ -365,6 +365,8 @@ class Script(BaseScript, metaclass=MetricScriptBase):
return False
if f.mt_matcher and not getattr(self, f.mt_matcher, False):
return False
if f.mt_access == "S" and not self.has_snmp():
return False
return True
pref = self.get_access_preference()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment