diff options
Diffstat (limited to 'lavalab-gen.py')
-rwxr-xr-x | lavalab-gen.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lavalab-gen.py b/lavalab-gen.py index eec6614..f7cd66d 100755 --- a/lavalab-gen.py +++ b/lavalab-gen.py @@ -132,7 +132,7 @@ def main(): for keyword in master: if not keyword in keywords_master: print("WARNING: unknown keyword %s" % keyword) - name = master["name"] + name = master["name"].lower() print("Handle %s\n" % name) if not "host" in master: host = "local" @@ -416,7 +416,7 @@ def main(): for keyword in slave: if not keyword in keywords_slaves: print("WARNING: unknown keyword %s" % keyword) - name = slave["name"] + name = slave["name"].lower() if len(slaves) == 1: default_slave = name print("Handle %s" % name) @@ -503,7 +503,7 @@ def main(): shutil.copy(worker["zmq_auth_key_secret"], "%s/zmq_auth/" % workerdir) shutil.copy(worker["zmq_auth_master_key"], "%s/zmq_auth/" % workerdir) for fm in masters: - if fm["name"] == remote_master: + if fm["name"].lower() == remote_master.lower(): slave_master = fm for fuser in fm["users"]: if fuser["name"] == remote_user: @@ -666,7 +666,7 @@ def main(): print("\tFound %s on %s" % (board_name, worker_name)) found_slave = False for fs in workers["slaves"]: - if fs["name"] == worker_name: + if fs["name"].lower() == worker_name.lower(): slave = fs found_slave = True if not found_slave: |