Skip to content

Commit 40aaa3c

Browse files
dandyecopybara-github
authored andcommitted
fix renamed var in v1alpha sample to update alert
PiperOrigin-RevId: 652642831
1 parent 82e6b8d commit 40aaa3c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

detect/v1alpha/update_alert.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,14 @@ def check_args(
194194
"""
195195
if not any(
196196
[
197-
args_to_check.comment or args.comment == "", # pylint: disable=g-explicit-bool-comparison
197+
args_to_check.comment or args_to_check.comment == "", # pylint: disable=g-explicit-bool-comparison
198198
args_to_check.disregarded,
199199
args_to_check.priority,
200200
args_to_check.reason,
201201
args_to_check.reputation,
202-
args_to_check.risk_score or args.risk_score == 0,
203-
args_to_check.root_cause or args.root_cause == "", # pylint: disable=g-explicit-bool-comparison
204-
args_to_check.severity or args.severity == 0,
202+
args_to_check.risk_score or args_to_check.risk_score == 0,
203+
args_to_check.root_cause or args_to_check.root_cause == "", # pylint: disable=g-explicit-bool-comparison
204+
args_to_check.severity or args_to_check.severity == 0,
205205
args_to_check.status,
206206
args_to_check.verdict,
207207
]

0 commit comments

Comments
 (0)