From e14c36b324a56e322eb0c6f264a6faffad9c57a8 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 25 Jun 2018 14:18:39 -0400 Subject: [PATCH] Stub for sanity test --- libremanage.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libremanage.py b/libremanage.py index 88a7d6b..dc51722 100644 --- a/libremanage.py +++ b/libremanage.py @@ -40,6 +40,11 @@ Valid commands are as follows: with open("config.json") as f: CONFIG = json.load(f) + +def open_ssh(config): + print(config) + +open_ssh(CONFIG["managers"]["myboard"]) print(CONFIG) def die_with_usage(message): @@ -66,7 +71,10 @@ COMMANDS = { # TTY access (or keyboard if wired as such) - "tty": (True, lambda s: print("Screening on " + s)) + "tty": (True, lambda s: print("Screening on " + s)), + + # SSH sanity test + "sanity": (True, lambda s: print("Sanity")) } def issue_command(server_name, command): -- 2.25.1