Explorar o código

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

Dan Helfman hai 11 meses
pai
achega
bb2e986c9d
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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):