mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 03:16:25 -06:00
Change LogLevelChoices in ScriptResultView get_table method
This commit is contained in:
parent
ebef1b983a
commit
b53d1f5f0e
@ -1315,9 +1315,9 @@ class ScriptResultView(TableMixin, generic.ObjectView):
|
|||||||
index = 0
|
index = 0
|
||||||
|
|
||||||
try:
|
try:
|
||||||
log_threshold = LOG_LEVEL_RANK[request.GET.get('log_threshold', LogLevelChoices.LOG_DEBUG)]
|
log_threshold = LOG_LEVEL_RANK[request.GET.get('log_threshold', LogLevelChoices.LOG_DEFAULT)]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
log_threshold = LOG_LEVEL_RANK[LogLevelChoices.LOG_DEBUG]
|
log_threshold = LOG_LEVEL_RANK[LogLevelChoices.LOG_DEFAULT]
|
||||||
if job.data:
|
if job.data:
|
||||||
|
|
||||||
if 'log' in job.data:
|
if 'log' in job.data:
|
||||||
|
Loading…
Reference in New Issue
Block a user