Module: check_mk
Branch: master
Commit: c0332581524849167fc2d21715784a4583ea955e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c0332581524849…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Sun Nov 20 23:59:48 2011 +0100
WATO: fixed download of 'latest' wato-snapshot
---
web/htdocs/wato.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 2ecc2e5..efa7184 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -3948,6 +3948,7 @@ def mode_snapshot(phase):
# Find the latest snapshot file
if download_file == 'latest':
snapshots = os.listdir(snapshot_dir)
+ snapshots.sort()
if not snapshots:
return False
download_file = snapshots[-1]