Commit 031f647b authored by Matthieu Dorier's avatar Matthieu Dorier

removed client info

parent b5a802db
......@@ -12,7 +12,7 @@ class DefaultController():
self._logger.debug("In DefaultController.add_target, target_info="+str(target_info))
self._targets.append(target_info)
def get_target(self, input_type, client_info, model_info):
def get_target(self, input_type, model_info):
self._logger.debug("In DefaultController.get_target")
if(len(self._targets) == 0):
return None
......
......@@ -64,9 +64,8 @@ class StorageManager(Provider):
elif(name in self._declared_models or name in self._committed_models):
self._respond_with_error(handle, 'Model '+str(name)+' already declared or committed')
else:
client_info = {'address' : str(handle.get_addr()) }
model_info = info['metadata']
target_info = self._controller.get_target('model', client_info, model_info)
target_info = self._controller.get_target('model', model_info)
if(target_info is None):
self._respond_with_error(handle, "Controller did not provide a target")
else:
......@@ -103,9 +102,8 @@ class StorageManager(Provider):
elif(name in self._declared_inputs or name in self._committed_inputs):
self._respond_with_error(handle, 'Input '+str(name)+' already declared or committed')
else:
client_info = {'address' : str(handle.get_addr()) }
metadata_info = info['metadata']
target_info = self._controller.get_target('input', client_info, metadata_info)
target_info = self._controller.get_target('input', metadata_info)
if(target_info is None):
self._respond_with_error(handle, "Controller did not provide a target")
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment