Module: check_mk
Branch: master
Commit: dc77874282555d54bd72b35f4dc4f7c8ffade127
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dc77874282555d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jul 21 15:26:35 2016 +0200
mkbackup: Added hostname to key download file name
---
web/htdocs/wato.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index f44ae87..c7d3ddb 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -5803,7 +5803,7 @@ class ModeBackupUploadKey(SiteBackupKeypairStore,
backup.PageBackupUploadKey, Wa
class ModeBackupDownloadKey(SiteBackupKeypairStore, backup.PageBackupDownloadKey,
WatoMode):
def _file_name(self, key_id, key):
- return "Check_MK-backup_key-%s.pem" % defaults.omd_site
+ return "Check_MK-%s-%s-backup_key-%s.pem" % (backup.hostname(),
defaults.omd_site, key_id)
class ModeBackupRestore(backup.PageBackupRestore, WatoMode):