Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
truenas-rk3588
truenas
Commits
227abe65
Commit
227abe65
authored
5 years ago
by
themylogin
Committed by
William Grzybowski
5 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Expose alert class default level
parent
c00b9a44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/middlewared/middlewared/plugins/alert.py
+1
-0
src/middlewared/middlewared/plugins/alert.py
with
1 addition
and
0 deletions
+1
-0
src/middlewared/middlewared/plugins/alert.py
View file @
227abe65
...
...
@@ -240,6 +240,7 @@ class AlertService(Service):
{
"id"
:
alert_class
.
name
,
"title"
:
alert_class
.
title
,
"level"
:
alert_class
.
level
.
name
,
}
for
alert_class
in
classes
if
alert_class
.
category
==
alert_category
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help