fix metrics_authentication method

This commit is contained in:
tuhina2020
2018-10-15 11:27:11 +05:30
parent ac7ff491e1
commit 1a6b16d493

View File

@@ -251,8 +251,7 @@ def admin_only(self):
def metrics_authentication(self):
"""Decorator for restricting access to metrics"""
user = self.current_user
authenticate_prometheus = self.authenticate_prometheus
if user is None and not user.authenticate_prometheus:
if user is None and not self.authenticate_prometheus:
raise web.HTTPError(403)