From 34db729ad48b62ab4d3888994aedc23fa561d51d Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Fri, 6 Sep 2024 10:59:51 -0500 Subject: [PATCH] bug fixes: mongodb console --- info/__init__.py | 2 +- transport/nosql/mongodb.py | 2 ++ transport/other/__init__.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/info/__init__.py b/info/__init__.py index 04183a9..04adfdf 100644 --- a/info/__init__.py +++ b/info/__init__.py @@ -1,6 +1,6 @@ __app_name__ = 'data-transport' __author__ = 'The Phi Technology' -__version__= '2.2.1' +__version__= '2.2.2' __email__ = "info@the-phi.com" __license__=f""" Copyright 2010 - 2024, Steve L. Nyemba diff --git a/transport/nosql/mongodb.py b/transport/nosql/mongodb.py index 7c5b8b2..503f821 100644 --- a/transport/nosql/mongodb.py +++ b/transport/nosql/mongodb.py @@ -33,6 +33,8 @@ class Mongo : :password password for current user """ self.host = 'localhost' if 'host' not in args else args['host'] + if ':' not in self.host and 'port' in args : + self.host = ':'.join([self.host,str(args['port'])]) self.mechanism= 'SCRAM-SHA-256' if 'mechanism' not in args else args['mechanism'] # authSource=(args['authSource'] if 'authSource' in args else self.dbname) self._lock = False if 'lock' not in args else args['lock'] diff --git a/transport/other/__init__.py b/transport/other/__init__.py index ea26d80..77d8e2f 100644 --- a/transport/other/__init__.py +++ b/transport/other/__init__.py @@ -1 +1 @@ -from . import files, http, rabbitmq, callback, files \ No newline at end of file +from . import files, http, rabbitmq, callback, files