Browse Source

--json: fix encryption[mode] not being the cmdline name

Marian Beermann 8 years ago
parent
commit
ba5d6693f9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/borg/helpers.py

+ 1 - 1
src/borg/helpers.py

@@ -1942,7 +1942,7 @@ def basic_json_data(manifest, *, cache=None, extra=None):
     data.update({
         'repository': BorgJsonEncoder().default(manifest.repository),
         'encryption': {
-            'mode': key.NAME,
+            'mode': key.ARG_NAME,
         },
     })
     data['repository']['last_modified'] = format_time(to_localtime(manifest.last_timestamp.replace(tzinfo=timezone.utc)))