summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2018-01-11 16:04:32 +0100
committerCorentin LABBE <clabbe@baylibre.com>2018-02-02 14:26:34 +0100
commit902d925a55ef8961aea10051d70bbed6215e7106 (patch)
tree7bac4dc40575c0c11839e3854f5ae38e3a6e39a4
parent17eb55c52985bb68ac7666ca1afa5b5f848b7b53 (diff)
produce non-duplicate udev files
When more than one "lab" is referenced (like lava-master + lab-slave-0), udev content is duplicated. This patch reset the udev_line variable for producing non-duplicate udev files.
-rwxr-xr-xlavalab-gen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lavalab-gen.py b/lavalab-gen.py
index 0e0b583..93fc447 100755
--- a/lavalab-gen.py
+++ b/lavalab-gen.py
@@ -42,7 +42,6 @@ def main(args):
fp = open(boards_yaml, "r")
labs = yaml.load(fp)
fp.close()
- udev_line =""
tdc = open("docker-compose.template", "r")
dockcomp = yaml.load(tdc)
tdc.close()
@@ -62,6 +61,7 @@ def main(args):
fp.close()
for lab_name in labs:
+ udev_line =""
lab = labs[lab_name]
for board_name in lab["boardlist"]:
b = lab["boardlist"][board_name]