Skip to content

Update requirements.txt for security alert #304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mongodb_consistent_backup/Backup/Mongodump/Mongodump.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def wait(self):
def threads(self, threads=None):
if threads:
self.thread_count = int(threads)
elif not self.thread_count and self.version is not 'unknown':
elif not self.thread_count and self.version != 'unknown':
if tuple(self.version.split(".")) >= tuple("3.2.0".split(".")):
self.thread_count = 1
if self.cpu_count > len(self.replsets):
Expand Down
4 changes: 2 additions & 2 deletions mongodb_consistent_backup/Common/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def parse_config_bool(item):
if isinstance(item, bool):
return item
elif isinstance(item, str):
if item.rstrip().lower() is "true":
if item.rstrip().lower() == "true":
return True
return False
except Exception:
Expand Down Expand Up @@ -143,7 +143,7 @@ def to_dict(self, data):
ret = {}
for key in data:
value = self.to_dict(data[key])
if value and key is not ('merge'):
if value and key != ('merge'):
if key == "password" or key == "secret_key":
value = "******"
ret[key] = value
Expand Down
2 changes: 1 addition & 1 deletion mongodb_consistent_backup/Logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self, config, backup_time):
self.stdout_level = logging.DEBUG

self.do_file_log = False
if self.config.log_dir is not '':
if self.config.log_dir != '':
self.do_file_log = True
if not os.path.isdir(self.config.log_dir):
print "WARNING: Creating logging directory: %s" % self.config.log_dir
Expand Down
20 changes: 10 additions & 10 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
multiprocessing
Fabric==1.14.0
pymongo==3.6.0
pynsca==1.5
PyYAML==3.12
boto==2.48.0
Fabric==1.14.1
pymongo==3.7.2
pynsca==1.6
PyYAML>=4.2b1
boto==2.49.0
filechunkio==1.8
python-dateutil==2.6.1
python-dateutil==2.8.0
yconf==0.3.4
google_compute_engine==2.7.2
progress==1.3
py-zabbix==1.1.3
dnspython==1.15
google_compute_engine==2.8.13
progress==1.4
py-zabbix==1.1.5
dnspython==1.16