diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2018-01-11 16:04:32 +0100 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2018-02-02 14:26:34 +0100 |
commit | 902d925a55ef8961aea10051d70bbed6215e7106 (patch) | |
tree | 7bac4dc40575c0c11839e3854f5ae38e3a6e39a4 /lavalab-gen.py | |
parent | 17eb55c52985bb68ac7666ca1afa5b5f848b7b53 (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.
Diffstat (limited to 'lavalab-gen.py')
-rwxr-xr-x | lavalab-gen.py | 2 |
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] |