Skip to content

Commit

Permalink
Merge pull request #99 from shtripat/node-ids-in-job-1
Browse files Browse the repository at this point in the history
Made node_id an optional argument to Manager
  • Loading branch information
r0h4n committed Jan 11, 2017
2 parents 8b8d98b + 64576be commit ea34779
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions tendrl/commons/manager/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ def __init__(
self,
name,
integration_id,
node_id,
config,
events,
persister_thread,
defs_dir
defs_dir,
node_id=None
):
self.name = name
self._config = config
Expand Down
12 changes: 6 additions & 6 deletions tendrl/commons/tests/test_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ def __init__(
self,
name,
integration_id,
node_id,
config,
events,
persister_thread,
defs_dir
defs_dir,
node_id=None,
):
super(MyManager, self).__init__(
name,
integration_id,
node_id,
config,
events,
persister_thread,
defs_dir
defs_dir,
node_id=node_id,
)

def on_pull(self, raw_data, cluster_id):
Expand All @@ -38,11 +38,11 @@ def setup_method(self, method):
self.manager = MyManager(
"dummymodule",
'aa22a6fe-87f0-45cf-8b70-2d0ff4c02af6',
'aa22a6fe-87f0-45cf-8b70-2d0ff4c02bf7',
MagicMock(),
MagicMock(),
MagicMock(),
"dummypath"
"dummypath",
node_id='aa22a6fe-87f0-45cf-8b70-2d0ff4c02bf7'
)

def test_manager_constructor(self):
Expand Down

0 comments on commit ea34779

Please sign in to comment.