From: Alyssa Rosenzweig Date: Mon, 25 Jun 2018 19:11:22 +0000 (-0400) Subject: Package up 'tty' X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f0ccad0a2af52e53cb016f4fe1e72d5990602d59;p=libremanage.git Package up 'tty' --- 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