Commit abb4c929 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

(cherry picked from commit e6ae586b)

e057064f Generic.get_metrics. Check SNMP for S access preference.
parent 70b2dcdd
Pipeline #36639 passed with stages
in 13 minutes and 42 seconds
......@@ -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