summaryrefslogtreecommitdiffstats
path: root/lavalab-gen.py
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2018-01-11 11:41:30 +0100
committerCorentin LABBE <clabbe@baylibre.com>2018-02-02 14:25:44 +0100
commitf8d352597e7629b4868024c933deca1ea8ea8c68 (patch)
tree65e5067c547161c09fef25c401633caa55639191 /lavalab-gen.py
parent302e41d55759affe58d77e14c15d728625a03d19 (diff)
A pdu is optionnal
Diffstat (limited to 'lavalab-gen.py')
-rwxr-xr-xlavalab-gen.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lavalab-gen.py b/lavalab-gen.py
index 6a5ea43..c0b5f8d 100755
--- a/lavalab-gen.py
+++ b/lavalab-gen.py
@@ -72,13 +72,13 @@ def main(args):
if b.get("disabled", None):
continue
+ devicetype = b["type"]
+ device_line = template_device.substitute(devicetype=devicetype)
if b.has_key("pdu"):
daemon = b["pdu"]["daemon"]
host = b["pdu"]["host"]
port = b["pdu"]["port"]
- devicetype = b["type"]
delay_opt = ""
- device_line = template_device.substitute(board=board_name, port=port, devicetype=devicetype)
device_line += template_device_pdu.substitute(port=port)
if b.has_key("uart"):
baud = b["uart"].get("baud", baud_default)