File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ docs = [
6565 " cachetools==5.5.2" , # For {{ config_param() }}
6666]
6767lint = [
68- " ruff==0.13.3 " ,
68+ " ruff==0.14.1 " ,
6969 " mypy==1.10" ,
7070 " black==24.8.0" ,
7171 " mongo-types==0.15.1" ,
Original file line number Diff line number Diff line change 11# ---------------------------------------------------------------------
22# CredentialCheckRule
33# ---------------------------------------------------------------------
4- # Copyright (C) 2007-2024 The NOC Project
4+ # Copyright (C) 2007-2025 The NOC Project
55# See LICENSE for details
66# ---------------------------------------------------------------------
77
@@ -134,7 +134,8 @@ def get_suggest_snmp(self) -> List[SNMPCredential]:
134134
135135 def get_suggest_cli (self , raise_privilege : bool = True ) -> List [CLICredential ]:
136136 r = []
137- proto = tuple (p .value for p in self .get_suggest_proto () if p .config .is_cli ) or (1 , 2 )
137+ sp = tuple (p .value for p in self .get_suggest_proto () if p .config .is_cli )
138+ proto = sp or (1 , 2 )
138139 for ss in self .suggest_credential :
139140 r .append (
140141 CLICredential (
You can’t perform that action at this time.
0 commit comments