Skip to content
This repository was archived by the owner on Dec 17, 2021. It is now read-only.

Commit 05d0e2c

Browse files
committed
Merge remote-tracking branch 'origin/develop' into develop
# Conflicts: # .github/signatures/version1/cla.json # splunk_connect_for_snmp_mib_server/mongo.py # splunk_connect_for_snmp_mib_server/translator.py
2 parents ee0166b + 7b9f093 commit 05d0e2c

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

splunk_connect_for_snmp_mib_server/mongo.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ def __init__(self, mongo_config):
1111
os.environ["MONGO_SERVICE_SERVICE_HOST"],
1212
int(os.environ["MONGO_SERVICE_SERVICE_PORT"]),
1313
)
14-
if os.environ.get("MONGO_USER"):
15-
self._client.admin.authenticate(
16-
os.environ["MONGO_USER"],
17-
os.environ["MONGO_PASS"],
18-
mechanism="SCRAM-SHA-1",
19-
)
2014
self._mibs = self._client[mongo_config["database"]][mongo_config["collection"]]
2115

2216
def upload_files(self, mib_files_dir):
@@ -52,12 +46,6 @@ def __init__(self, mongo_config):
5246
os.environ["MONGO_SERVICE_SERVICE_HOST"],
5347
int(os.environ["MONGO_SERVICE_SERVICE_PORT"]),
5448
)
55-
if os.environ.get("MONGO_USER"):
56-
self._client.admin.authenticate(
57-
os.environ["MONGO_USER"],
58-
os.environ["MONGO_PASS"],
59-
mechanism="SCRAM-SHA-1",
60-
)
6149
self._oids = self._client[mongo_config["database"]][mongo_config["collection"]]
6250

6351
def contains_oid(self, oid):

splunk_connect_for_snmp_mib_server/translator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ def check_mongo(self, oid):
185185

186186
return no_mapping_mib
187187

188+
188189
# Translate SNMP PDU varBinds into MIB objects using MIB
189190
def mib_translator(self, var_bind):
190-
191191
# Run var-binds through MIB resolver
192192
try:
193193
name = var_bind["oid"]

0 commit comments

Comments
 (0)