Skip to content

Commit b91cc99

Browse files
Improved logging #2
1 parent 3e9f7ca commit b91cc99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mongodb_consistent_backup/Backup/Mongodump/MongodumpThread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def mongodump_cmd(self):
157157
if self.is_version_gte("3.2.0"):
158158
read_pref = self.parse_read_pref()
159159
if read_pref:
160-
mongodump_flags.append("--readPreference=%s" % read_pref)
160+
mongodump_flags.append("--readPreference='%s'" % read_pref)
161161
elif self.read_pref_tags:
162162
logging.fatal("Mongodump must be >= 3.2.0 to set read preference!")
163163
sys.exit(1)

0 commit comments

Comments
 (0)