瀏覽代碼

Fix broken "config generate" (#975).

Dan Helfman 3 月之前
父節點
當前提交
4b2f7e03af
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      borgmatic/config/generate.py
  2. 1 0
      borgmatic/config/schema.yaml

+ 1 - 0
borgmatic/config/generate.py

@@ -41,6 +41,7 @@ def schema_to_sample_configuration(schema, level=0, parent_is_sequence=False):
     '''
     '''
     schema_type = schema.get('type')
     schema_type = schema.get('type')
     example = schema.get('example')
     example = schema.get('example')
+
     if example is not None:
     if example is not None:
         return example
         return example
 
 

+ 1 - 0
borgmatic/config/schema.yaml

@@ -1051,6 +1051,7 @@ properties:
                         "tar" format. Be aware that Borg does its own
                         "tar" format. Be aware that Borg does its own
                         compression as well, so you may not need it in both
                         compression as well, so you may not need it in both
                         places.
                         places.
+                    example: none
                 ssl_mode:
                 ssl_mode:
                     type: string
                     type: string
                     enum: ['disable', 'allow', 'prefer',
                     enum: ['disable', 'allow', 'prefer',