From f8d352597e7629b4868024c933deca1ea8ea8c68 Mon Sep 17 00:00:00 2001 From: Corentin LABBE Date: Thu, 11 Jan 2018 11:41:30 +0100 Subject: A pdu is optionnal --- lavalab-gen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lavalab-gen.py') 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) -- cgit 1.2.3-korg