[checkmk-commits] 7397 oracle_tablespaces: Inventory is now sorted by SID, then name.

Moritz Kiemer mo at mathias-kettner.de
Thu Apr 11 09:50:44 CEST 2019


Module: check_mk
Branch: master
Commit: 8db81646dcc31163f3316134226e9bd494791f7b
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8db81646dcc31163f3316134226e9bd494791f7b

Author: Moritz Kiemer <mo at mathias-kettner.de>
Date:   Wed Apr 10 15:17:58 2019 +0200

7397 oracle_tablespaces: Inventory is now sorted by SID, then name.

Change-Id: I2e343a5e4ce316e3a2e1511c0b164e0b2f9d815e

---

 .werks/7397                  | 10 ++++++++++
 inventory/oracle_tablespaces |  2 +-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/.werks/7397 b/.werks/7397
new file mode 100644
index 0000000..cefd8d5
--- /dev/null
+++ b/.werks/7397
@@ -0,0 +1,10 @@
+Title: oracle_tablespaces: Inventory is now sorted by SID, then name.
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1554902231
+Class: feature
+
+
diff --git a/inventory/oracle_tablespaces b/inventory/oracle_tablespaces
index 57c42b8..246c73f 100644
--- a/inventory/oracle_tablespaces
+++ b/inventory/oracle_tablespaces
@@ -54,7 +54,7 @@ def inv_oracle_tablespaces(parsed, inventory_tree, status_data_tree):
     status_node = status_data_tree.get_list(path)
 
     tablespaces, _error_sids = parsed
-    for tablespace, attrs in tablespaces.items():
+    for tablespace, attrs in sorted(tablespaces.items()):
         sid, name = tablespace
         db_version = attrs["db_version"]
         num_files = 0



More information about the checkmk-commits mailing list