Browse Source

Fix end-to-end tests (#962).

Dan Helfman 5 tháng trước cách đây
mục cha
commit
bb2e986c9d
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      borgmatic/actions/create.py

+ 5 - 1
borgmatic/actions/create.py

@@ -31,7 +31,11 @@ def parse_pattern(pattern_line):
         pattern_style = ''
         path = remainder
 
-    return borgmatic.borg.pattern.Pattern(path, pattern_type, pattern_style)
+    return borgmatic.borg.pattern.Pattern(
+        path,
+        borgmatic.borg.pattern.Pattern_type(pattern_type),
+        borgmatic.borg.pattern.Pattern_style(pattern_style),
+    )
 
 
 def collect_patterns(config):