mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
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:
parent
461fe21a19
commit
2a9a220770
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user