Commit 168ee22d authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

experiments: add ip address attribute to executors

parent 4b2fde4d
......@@ -98,11 +98,13 @@ def load_executors(path):
exs = []
for h in hosts:
if h['type'] == 'local':
exs.append(exectools.LocalExecutor())
ex = exectools.LocalExecutor()
elif h['type'] == 'remote':
exs.append(exectools.RemoteExecutor(h['host'], h['workdir']))
ex = exectools.RemoteExecutor(h['host'], h['workdir'])
else:
raise RuntimeError('invalid host type "' + h['type'] + '"')
ex.ip = h['ip']
exs.append(ex)
return exs
if args.hosts is None:
......
......@@ -255,6 +255,8 @@ class SimpleRemoteComponent(SimpleComponent):
await self._kill_cmd('KILL')
class Executor(object):
ip = None
def create_component(self, label, parts, **kwargs):
raise NotImplementedError("Please Implement this method")
......
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