summaryrefslogtreecommitdiffstats
path: root/rpmbuild-remote.py
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 /rpmbuild-remote.py
parent67300d1928eb8021b27be3d7e6b85839887714dd (diff)
downloadrpmbuild-remote-525ab09f763af8f418623b3f7ce27d6185f3f49c.zip
rpmbuild-remote-525ab09f763af8f418623b3f7ce27d6185f3f49c.tar.gz
rpmbuild-remote-525ab09f763af8f418623b3f7ce27d6185f3f49c.tar.xz
Use better function call
Diffstat (limited to 'rpmbuild-remote.py')
-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'])