summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)