Module: check_mk
Branch: master
Commit: 1c6f64dd1c58a3bf2a5451588b017808f325e122
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1c6f64dd1c58a3…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jul 27 07:53:42 2016 +0200
Fixed restore dialog when using encrypted backups
---
web/htdocs/backup.py | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/web/htdocs/backup.py b/web/htdocs/backup.py
index fbbf0f7..6952a0f 100644
--- a/web/htdocs/backup.py
+++ b/web/htdocs/backup.py
@@ -1692,10 +1692,13 @@ class PageBackupRestore(object):
except MKUserError, e:
html.add_user_error(e.varname, e)
- html.header(_("Insert passphrase"))
- html.begin_context_buttons()
- html.context_button(_("Back"), html.makeuri([("mode",
"backup_restore")]), "back")
- html.end_context_buttons()
+ # Special handling for Check_MK / CMA differences
+ if is_site():
+ html.header(_("Insert passphrase"))
+ html.begin_context_buttons()
+ html.context_button(_("Back"), html.makeuri([("mode",
"backup_restore")]), "back")
+ html.end_context_buttons()
+
html.show_user_errors()
html.write("<p>%s</p>" %
_("To be able to decrypt and restore the encrypted backup, you need to
enter the "