Module: check_mk
Branch: master
Commit: 53309494e18a080248de76696605bcc986ae3231
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=53309494e18a08…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Dec 11 17:03:49 2013 +0100
upload file: using getter function to access html.uploads
---
web/htdocs/wato.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index d74d5df..9c3b6d8 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -5549,7 +5549,7 @@ def mode_snapshot(phase):
# upload snapshot
elif html.uploads.get("_upload_file"):
- uploaded_file = html.uploads.get("_upload_file")
+ uploaded_file = html.uploaded_file("_upload_file")
if uploaded_file[0] == "":
raise MKUserError(None, _("Please select a file for upload."))
if html.check_transaction():
@@ -8438,7 +8438,7 @@ def automation_push_snapshot():
message += ", ".join([e[-1] for e in pending[:10]])
raise MKGeneralException(message)
- tarcontent = html.uploads.get("snapshot")
+ tarcontent = html.uploaded_file("snapshot")
if not tarcontent:
raise MKGeneralException(_('Invalid call: The snapshot is
missing.'))
tarcontent = tarcontent[2]