projects
/
libremanage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6111068
)
Stub for sanity test
author
Alyssa Rosenzweig
<alyssa@rosenzweig.io>
Mon, 25 Jun 2018 18:18:39 +0000
(14:18 -0400)
committer
Alyssa Rosenzweig
<alyssa@rosenzweig.io>
Mon, 25 Jun 2018 18:18:39 +0000
(14:18 -0400)
libremanage.py
patch
|
blob
|
blame
|
history
diff --git
a/libremanage.py
b/libremanage.py
index 88a7d6b729cd9e489715ed753d3170a8bea07daf..dc5172243e12975a00fee49feea359c84998fbc9 100644
(file)
--- 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):