Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.

Commit 6219b4d

Browse files
author
James Bell
authored
Merge pull request #89 from chollinger/patch/chollinger/actually-remove-mongo-dependency-from-tests
Merging to update deps
2 parents 3222358 + 8674139 commit 6219b4d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name='tgt_grease',
7-
version='2.3.7',
7+
version='2.3.8',
88
license="MIT",
99
description='Modern distributed automation engine built with love by Target',
1010
long_description="""

tgt_grease/core/InversionOfControl.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class GreaseContainer(object):
1010
"""Inversion of Control Container for objects in GREASE"""
1111

1212
__logger = Logging()
13-
__mongo = Mongo(__logger.getConfig())
13+
__mongo = None
1414

1515

1616
def __init__(self, *args, **kwargs):
@@ -45,7 +45,8 @@ def getMongo(self):
4545
Mongo: Mongo Instance Connection
4646
4747
"""
48-
48+
if not GreaseContainer.__mongo:
49+
GreaseContainer.__mongo = Mongo(self.getLogger().getConfig())
4950
return GreaseContainer.__mongo
5051

5152
def getCollection(self, collectionName):

0 commit comments

Comments
 (0)