Module: check_mk
Branch: master
Commit: e242b9ff9834f514e690a14d287486136cc0ac57
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e242b9ff9834f5…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon May 16 11:02:26 2011 +0200
FIX: sort output of cmk --list-hosts alphabetically
---
ChangeLog | 3 +++
modules/check_mk.py | 1 +
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 419ceef..d36fb1a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
1.1.11i2:
+ Core, Setup, etc.:
+ * FIX: sort output of cmk --list-hosts alphabetically
+
Multisite:
* Introduced basic infrastructure for multilanguage support in Multisite
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 11671b9..589b69d 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -2752,6 +2752,7 @@ def list_all_hosts(hostgroups):
if hg in hostgroups:
hostlist.append(hn)
break
+ hostlist.sort()
return hostlist
# Same for host tags, needed for --list-tag