Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Monitoring
Checkmk
Commits
733150a3
Commit
733150a3
authored
May 24, 2022
by
root
Browse files
Merge branch 'master' of
https://github.com/tribe29/checkmk
parents
e6f40129
2f0d9f56
Changes
3
Hide whitespace changes
Inline
Side-by-side
.werks/14119
0 → 100644
View file @
733150a3
Title: Fix ignored site filter on exporting views as PDF report
Class: fix
Compatible: compat
Component: reporting
Date: 1653052712
Edition: cee
Knowledge: doc
Level: 1
State: unknown
Version: 2.2.0i1
If you used site filters in views and the option "Export" -> "This view as
PDF", the generated report contained all site results.
.werks/14120
0 → 100644
View file @
733150a3
Title: Fix error while removing event console rule MKPs
Class: fix
Compatible: compat
Component: wato
Date: 1653296177
Edition: cre
Knowledge: doc
Level: 1
State: unknown
Version: 2.2.0i1
If MKPs with event console rules were removed, the error "list assignment index
out of range" could occur.
cmk/utils/packaging.py
View file @
733150a3
...
...
@@ -288,19 +288,18 @@ def remove(package: PackageInfo) -> None:
filenames
=
package
[
"files"
].
get
(
part
.
ident
,
[])
if
len
(
filenames
)
>
0
:
logger
.
log
(
VERBOSE
,
" %s%s%s"
,
tty
.
bold
,
part
.
title
,
tty
.
normal
)
if
part
.
ident
==
"ec_rule_packs"
:
_remove_packaged_rule_packs
(
filenames
)
continue
for
fn
in
filenames
:
logger
.
log
(
VERBOSE
,
" %s"
,
fn
)
try
:
path
=
part
.
path
+
"/"
+
fn
if
part
.
ident
==
"ec_rule_packs"
:
_remove_packaged_rule_packs
(
filenames
)
else
:
with
suppress
(
FileNotFoundError
):
os
.
remove
(
path
)
file_path
=
Path
(
part
.
path
)
/
fn
file_path
.
unlink
(
missing_ok
=
True
)
except
Exception
as
e
:
if
cmk
.
utils
.
debug
.
enabled
():
raise
raise
Exception
(
"Cannot remove %s: %s
\n
"
%
(
path
,
e
))
raise
Exception
(
"Cannot remove %s: %s
\n
"
%
(
file_
path
,
e
))
(
package_dir
()
/
package
[
"name"
]).
unlink
()
...
...
@@ -537,6 +536,7 @@ def _remove_packaged_rule_packs(file_names: Iterable[str], delete_export: bool =
del
rule_packs
[
index
]
if
delete_export
:
ec
.
remove_exported_rule_pack
(
id_
)
rule_pack_ids
.
remove
(
id_
)
ec
.
save_rule_packs
(
rule_packs
)
...
...
Write
Preview
Supports
Markdown
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