backups: Use valid filename for manifest

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
James Valleroy 2018-09-02 18:36:33 -04:00 committed by Joseph Nuthalapati
parent 461fe21a19
commit 2a9a220770
No known key found for this signature in database
GPG Key ID: 5398F00A2FA43C35

View File

@ -81,7 +81,8 @@ def _backup_handler(packet):
if not os.path.exists(MANIFESTS_FOLDER):
os.makedirs(MANIFESTS_FOLDER)
manifest_path = MANIFESTS_FOLDER + packet.label + '.json'
manifest_path = MANIFESTS_FOLDER + get_valid_filename(
packet.label) + '.json'
manifests = [{
'name': x[0],
'version': x[1].version,