Browse Source

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

Dan Helfman 5 months ago
parent
commit
bb2e986c9d
1 changed files with 5 additions and 1 deletions
  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):