summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-09-09 12:57:11 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-09-09 12:57:11 -0400
commit525ab09f763af8f418623b3f7ce27d6185f3f49c (patch)
tree31af0de67a1d4a9c410f207c9f7cebd7cbf61aea
parent67300d1928eb8021b27be3d7e6b85839887714dd (diff)
downloadrpmbuild-remote-525ab09f763af8f418623b3f7ce27d6185f3f49c.tar.gz
rpmbuild-remote-525ab09f763af8f418623b3f7ce27d6185f3f49c.tar.xz
rpmbuild-remote-525ab09f763af8f418623b3f7ce27d6185f3f49c.zip
Use better function call
-rwxr-xr-xrpmbuild-remote.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmbuild-remote.py b/rpmbuild-remote.py
index 65b8913..7189539 100755
--- a/rpmbuild-remote.py
+++ b/rpmbuild-remote.py
@@ -147,7 +147,7 @@ def get_rpmbuild_results(session, dest, sout, serr):
def execute_jobs(opts, system, jobs):
session = paramiko.SSHClient()
- session.get_host_keys().load(os.path.expanduser('~/.ssh/known_hosts'))
+ session.load_system_host_keys()
LOG.info("Connecting to %(user)s@%(host)s:%(port)d" % system)
session.connect(system['host'], port=system['port'],
username=system['user'], key_filename=system['ssh_key'])