Issue command stub
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Mon, 25 Jun 2018 17:32:17 +0000 (13:32 -0400)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Mon, 25 Jun 2018 17:32:17 +0000 (13:32 -0400)
libremanage.py

index 7a59af92da90526b7ebd63cad6765c50c0bd53c6..9bfacfceae9016cdfba93b6e415d7ead14ec2536 100644 (file)
@@ -35,10 +35,12 @@ Valid commands are as follows:
     - shutdown, reboot, poweron: Power management
 """
 
     - shutdown, reboot, poweron: Power management
 """
 
-#sys.argv[1]
 if len(sys.argv) != 3:
     print("Incorrect number of arguments")
     print(USAGE)
     sys.exit(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])