mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-16 13:17:39 +00:00
perf: reformat code
This commit is contained in:
parent
ad5e88f1e3
commit
7c6e83d124
@ -2,12 +2,15 @@ from terminal.utils.loki_client import get_loki_client
|
|||||||
|
|
||||||
__all__ = ['LokiMixin', ]
|
__all__ = ['LokiMixin', ]
|
||||||
|
|
||||||
|
|
||||||
class LokiMixin:
|
class LokiMixin:
|
||||||
|
|
||||||
def get_loki_client(self):
|
@staticmethod
|
||||||
|
def get_loki_client():
|
||||||
return get_loki_client()
|
return get_loki_client()
|
||||||
|
|
||||||
def create_loki_query(self, components, search):
|
@staticmethod
|
||||||
|
def create_loki_query(components, search):
|
||||||
stream_selector = '{component!=""}'
|
stream_selector = '{component!=""}'
|
||||||
if components:
|
if components:
|
||||||
stream_selector = '{component=~"%s"}' % components
|
stream_selector = '{component=~"%s"}' % components
|
||||||
|
Loading…
Reference in New Issue
Block a user