From: Alyssa Rosenzweig Date: Mon, 25 Jun 2018 17:32:17 +0000 (-0400) Subject: Issue command stub X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d24528e4b93e8794196b910a38ee64a6de9a2567;p=libremanage.git Issue command stub --- diff --git a/libremanage.py b/libremanage.py index 7a59af9..9bfacfc 100644 --- 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])