Module: check_mk
Branch: master
Commit: 402d3e02a3baf9ed1f7ac705bb3f149c51807199
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=402d3e02a3baf9…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Jul 25 14:58:55 2017 +0200
inv-plugin oracle_tablespaces: tablespaces are ordered by SID
Change-Id: Ifb4756bf4f3a7828da5d7515f22c6a7c9ba670eb
---
inventory/oracle_tablespaces | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/inventory/oracle_tablespaces b/inventory/oracle_tablespaces
index df66d69..0f0c694 100644
--- a/inventory/oracle_tablespaces
+++ b/inventory/oracle_tablespaces
@@ -53,7 +53,7 @@
def inv_oracle_tablespaces(parsed):
node = inv_tree_list("software.applications.oracle.tablespaces:")
tablespaces, error_sids = parsed
- for (sid, name), attrs in tablespaces.items():
+ for (sid, name), attrs in sorted(tablespaces.items(), key=lambda x: x[0][0]):
node.append({
"sid" : sid,
"name" : name,