From 202491497bbe2dc936004b1b030853150a8e67de Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 25 Jun 2018 14:41:01 -0400 Subject: [PATCH] SSHable stub for power --- libremanage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libremanage.py b/libremanage.py index 2d018d5..f0375a3 100644 --- a/libremanage.py +++ b/libremanage.py @@ -60,7 +60,8 @@ def get_server_handle(name): return server def set_server_power(state, server): - print("Setting server " + server + " to power state " + str(state)) + print("Setting to power state " + str(state)) + open_ssh(server, "echo " + str(state) + " > /dev/shm/power") COMMANDS = { # Power managemment -- 2.25.1