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

Merge branch 'fix-avs-get-metrics' into 'master'

Generic.get_metrics. Check SNMP for S access preference.

See merge request !6406
parents 18b3646a e057064f
...@@ -365,6 +365,8 @@ class Script(BaseScript, metaclass=MetricScriptBase): ...@@ -365,6 +365,8 @@ class Script(BaseScript, metaclass=MetricScriptBase):
return False return False
if f.mt_matcher and not getattr(self, f.mt_matcher, False): if f.mt_matcher and not getattr(self, f.mt_matcher, False):
return False return False
if f.mt_access == "S" and not self.has_snmp():
return False
return True return True
pref = self.get_access_preference() 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