From f0ccad0a2af52e53cb016f4fe1e72d5990602d59 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 25 Jun 2018 15:11:22 -0400 Subject: [PATCH] Package up 'tty' --- config.json | 6 ++++-- libremanage.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config.json b/config.json index 5594855..b126863 100644 --- a/config.json +++ b/config.json @@ -2,8 +2,10 @@ "servers": { "web2": { "manager": "myboard", - "tty": "/dev/ttyUSB0", - "baud": 115200 + "tty": { + "file": "/dev/ttyUSB0", + "baud": 115200 + } } }, "managers": { diff --git a/libremanage.py b/libremanage.py index f0375a3..87cb488 100644 --- a/libremanage.py +++ b/libremanage.py @@ -72,7 +72,7 @@ COMMANDS = { # TTY access (or keyboard if wired as such) - "tty": lambda s: open_ssh(s, "screen " + s["tty"] + str(s["baud"])), + "tty": lambda s: open_ssh(s, "screen " + s["tty"]["file"] + str(s["tty"]["baud"])), # SSH sanity tests -- 2.25.1