Skip to content

Commit 90e7f2f

Browse files
maulaltimvaillancourt
authored andcommitted
The code does not act as the warning message (#156)
1 parent c2a2207 commit 90e7f2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mongodb_consistent_backup/Backup/Mongodump/MongodumpThread.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ def mongodump_cmd(self):
112112
mongodump_flags.extend(["--authenticationDatabase", self.authdb])
113113
if self.user and self.password:
114114
# >= 3.0.2 supports password input via stdin to mask from ps
115-
if tuple("3.0.2".split(".")) <= tuple(self.version.split(".")):
115+
if tuple(self.version.split(".")) >= tuple("3.0.2".split(".")):
116116
mongodump_flags.extend(["-u", self.user, "-p", '""'])
117117
self.do_stdin_passwd = True
118118
else:
119-
logging.warning("Mongodump is too old to set password securely! Upgrade to mongodump >= 3.2.0 to resolve this")
119+
logging.warning("Mongodump is too old to set password securely! Upgrade to mongodump >= 3.0.2 to resolve this")
120120
mongodump_flags.extend(["-u", self.user, "-p", self.password])
121121
mongodump_cmd.extend(mongodump_flags)
122122
return mongodump_cmd

0 commit comments

Comments
 (0)