summaryrefslogtreecommitdiffstats
path: root/rpmbuild-remote.py
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-09-08 22:28:29 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-09-08 22:28:29 -0400
commitae7913fbe84bfdb78d87ce899de599240926e380 (patch)
tree6533823a4aa7d3accbcc83c050f8c03131069d93 /rpmbuild-remote.py
parentbb99c906c332f650a5a7b6db053045055131162b (diff)
downloadrpmbuild-remote-ae7913fbe84bfdb78d87ce899de599240926e380.zip
rpmbuild-remote-ae7913fbe84bfdb78d87ce899de599240926e380.tar.gz
rpmbuild-remote-ae7913fbe84bfdb78d87ce899de599240926e380.tar.xz
Close open sessions
Diffstat (limited to 'rpmbuild-remote.py')
-rw-r--r--rpmbuild-remote.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpmbuild-remote.py b/rpmbuild-remote.py
index 73bfee2..4d5e9fe 100644
--- a/rpmbuild-remote.py
+++ b/rpmbuild-remote.py
@@ -107,6 +107,7 @@ def send_files(session, files, dest):
for file in files:
LOG.info("Writing %s to server (%s)" % (file, dest))
sftp.put(file, dest)
+ sftp.close()
def execute_jobs(opts, system, jobs):
session = paramiko.SSHClient()
@@ -136,6 +137,7 @@ def execute_jobs(opts, system, jobs):
files = session.exec_command(cmd)
# Write output files
# Fetch RPM files
+ session.close()
def main():
parser = get_parser()