From 8e6ada1b572df73e7327fa8a4908334292ee202c Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 29 Jan 2008 21:58:06 +0000 Subject: [PATCH] deleted --- qaapi/qa/tests/plc_remote_call.py | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 qaapi/qa/tests/plc_remote_call.py diff --git a/qaapi/qa/tests/plc_remote_call.py b/qaapi/qa/tests/plc_remote_call.py deleted file mode 100644 index 743c31f..0000000 --- a/qaapi/qa/tests/plc_remote_call.py +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/python -import os, sys -from Test import Test -from qa import utils - -class plc_remote_call(Test): - """ - Attempt to connect to a node using the plc root key and - issue a command. - """ - - def call(self, root_key_path, hostname, command): - if not os.path.isfile(root_key_path): - raise Exception, "no such private key file %(root_key_path)s" % locals() - - full_command = "ssh -i %(root_key_path)s root@%(hostname)s %(command)s" % locals() - if self.config.verbose: - utils.header(full_command) - (stdout, stderr) = utils.popen(full_command) - - if self.config.verbose: - utils.header("\n".join(stdout)) - - - return 1 - -if __name__ == '__main__': - args = tuple(sys.argv[1:]) - plc_remote_call()(*args) -- 2.47.0