Module: check_mk
Branch: master
Commit: b64330b1ecc0317d82a0261a5ec16fc01beb9f0d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b64330b1ecc031…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Dec 12 10:26:49 2017 +0100
5453 FIX HW/SW inventory: Changed output format of raw inventory tree
Change-Id: I53e66693369e4a404f67ae4588c890e632d4eeee
---
.werks/5453 | 13 +++++++++++++
cmk_base/inventory.py | 2 +-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/5453 b/.werks/5453
new file mode 100644
index 0000000..55f7321
--- /dev/null
+++ b/.werks/5453
@@ -0,0 +1,13 @@
+Title: HW/SW inventory: Changed output format of raw inventory tree
+Level: 1
+Component: inv
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i2
+Date: 1513069962
+
+The output format of raw inventory trees is now generated with
+simple pythons's repr command, instead of the CPU consuming
+pretty-print.
diff --git a/cmk_base/inventory.py b/cmk_base/inventory.py
index c17caea..7931cfb 100644
--- a/cmk_base/inventory.py
+++ b/cmk_base/inventory.py
@@ -56,7 +56,7 @@ import cmk_base.data_sources as data_sources
inventory_output_dir = cmk.paths.var_dir + "/inventory"
inventory_archive_dir = cmk.paths.var_dir + "/inventory_archive"
# TODO: This is not configurable. Drop the flag?
-inventory_pprint_output = True
+inventory_pprint_output = False
_inv_hw_changes = 0
_inv_sw_changes = 0