summaryrefslogtreecommitdiffstats
path: root/lavalab-gen.py
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2018-10-15 11:56:15 +0200
committerCorentin LABBE <clabbe@baylibre.com>2018-10-15 16:30:23 +0200
commit1f8c902768af3dd9738bdd0188c9be8231dd327a (patch)
tree1b67fa00684c7a215ae04fc8b8f72b950dc4948a /lavalab-gen.py
parent593854791774531ec4fa7513be6d194a1ed067f4 (diff)
Rename export_ser2net to expose_ser2net
This patch rename export_ser2net to expose_ser2net. The old export_ser2net is still handled but we now print a deprecating message.
Diffstat (limited to 'lavalab-gen.py')
-rwxr-xr-xlavalab-gen.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/lavalab-gen.py b/lavalab-gen.py
index 0e6ab5a..ce24e2d 100755
--- a/lavalab-gen.py
+++ b/lavalab-gen.py
@@ -221,7 +221,7 @@ def main():
else:
slaves = workers["slaves"]
for slave in slaves:
- keywords_slaves = [ "name", "host", "dispatcher_ip", "remote_user", "remote_master", "remote_address", "remote_rpc_port", "remote_proto", "extra_actions", "zmq_auth_key", "zmq_auth_key_secret", "default_slave", "export_ser2net", "remote_user_token", "zmq_auth_master_key", "expose_ports" ]
+ keywords_slaves = [ "name", "host", "dispatcher_ip", "remote_user", "remote_master", "remote_address", "remote_rpc_port", "remote_proto", "extra_actions", "zmq_auth_key", "zmq_auth_key_secret", "default_slave", "export_ser2net", "expose_ser2net", "remote_user_token", "zmq_auth_master_key", "expose_ports" ]
for keyword in slave:
if not keyword in keywords_slaves:
print("WARNING: unknown keyword %s" % keyword)
@@ -481,16 +481,19 @@ def main():
#end for board
for slave_name in ser2net_ports:
- export_ser2net = False
+ expose_ser2net = False
for fs in workers["slaves"]:
if fs["name"] == slave_name:
if not "host" in fs:
host = "local"
else:
host = fs["host"]
+ if "expose_ser2net" in fs:
+ expose_ser2net = fs["expose_ser2net"]
if "export_ser2net" in fs:
- export_ser2net = fs["export_ser2net"]
- if not export_ser2net:
+ print("export_ser2net is deprecated, please use expose_ser2net")
+ expose_ser2net = fs["export_ser2net"]
+ if not expose_ser2net:
continue
print("Add ser2net ports for %s (%s) %s-%s" % (slave_name, host, ser2net_port_start, ser2net_ports[slave_name]))
dockcomposeymlpath = "output/%s/docker-compose.yml" % host