I tried to apply this patch to 'next' branch and works for me, so give a ACK.
-- Regards, Alex ----- Original Message ----- From: "Wayne Sun" <[email protected]> To: [email protected] Sent: Friday, August 17, 2012 5:50:11 PM Subject: [Autotest] [PATCH] Fix nits in ssh_key Fix the undefined problem introduced by copy-paste Signed-off-by: Wayne Sun <[email protected]> --- client/shared/ssh_key.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/shared/ssh_key.py b/client/shared/ssh_key.py index fed9115..2900c00 100644 --- a/client/shared/ssh_key.py +++ b/client/shared/ssh_key.py @@ -1,4 +1,4 @@ -import os +import os, logging from autotest.client.shared import pxssh from autotest.client.shared import base_utils as utils @@ -44,11 +44,11 @@ def get_public_key(): def setup_ssh_key(hostname, user, password, port): logging.debug('Performing SSH key setup on %s:%d as %s.' % - (self.hostname, self.port, self.user)) + (hostname, port, user)) try: host = pxssh.pxssh() - host.login(hostname, user, password, port) + host.login(hostname, user, password, port=port) public_key = get_public_key() host.sendline('mkdir -p ~/.ssh') -- 1.7.1 _______________________________________________ Autotest-kernel mailing list [email protected] https://www.redhat.com/mailman/listinfo/autotest-kernel _______________________________________________ Autotest-kernel mailing list [email protected] https://www.redhat.com/mailman/listinfo/autotest-kernel
