Skip to content

Commit e92cab6

Browse files
authored
ruff 0.14.1 (#40)
1 parent 0069c32 commit e92cab6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ docs = [
6565
"cachetools==5.5.2", # For {{ config_param() }}
6666
]
6767
lint = [
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",

sa/models/credentialcheckrule.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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(

0 commit comments

Comments
 (0)