Skip to content

Commit 85ba4f8

Browse files
Only print options for chosen method, not all
1 parent ac861cd commit 85ba4f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mongodb_consistent_backup/Archive/Archive.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ def threads(self, threads=None):
3838
def archive(self):
3939
if self._archiver:
4040
config_vars = ""
41-
for key in self.config.archive:
42-
config_vars += "%s=%s," % (key, self.config.archive[key])
41+
for key in self.config.archive[self.method]:
42+
config_vars += "%s=%s," % (key, self.config.archive[self.method][key])
4343
logging.info("Archiving with method: %s (options: %s)" % (self.method, str(config_vars[:-1])))
4444
return self._archiver.run()
4545

0 commit comments

Comments
 (0)