projects
/
libremanage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b266c22
)
Issue command stub
author
Alyssa Rosenzweig
<alyssa@rosenzweig.io>
Mon, 25 Jun 2018 17:32:17 +0000
(13:32 -0400)
committer
Alyssa Rosenzweig
<alyssa@rosenzweig.io>
Mon, 25 Jun 2018 17:32:17 +0000
(13:32 -0400)
libremanage.py
patch
|
blob
|
blame
|
history
diff --git
a/libremanage.py
b/libremanage.py
index 7a59af92da90526b7ebd63cad6765c50c0bd53c6..9bfacfceae9016cdfba93b6e415d7ead14ec2536 100644
(file)
--- a/
libremanage.py
+++ b/
libremanage.py
@@
-35,10
+35,12
@@
Valid commands are as follows:
- shutdown, reboot, poweron: Power management
"""
-#sys.argv[1]
if len(sys.argv) != 3:
print("Incorrect number of arguments")
print(USAGE)
sys.exit(1)
-print(len(sys.argv))
+def issue_command(server_name, command):
+ print(server_name, command)
+
+issue_command(sys.argv[1], sys.argv[2])