diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-09-08 22:11:19 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-09-08 22:11:19 -0400 |
commit | 5d737463b750dd9e0767642de1afea6a5bac1bb1 (patch) | |
tree | de48ee7d65d67cead29e3de6558e9233efb8e9f6 | |
parent | 0e5e3aaab97e67201413b0460e7e0ccd7b337640 (diff) | |
download | rpmbuild-remote-5d737463b750dd9e0767642de1afea6a5bac1bb1.tar.gz rpmbuild-remote-5d737463b750dd9e0767642de1afea6a5bac1bb1.tar.xz rpmbuild-remote-5d737463b750dd9e0767642de1afea6a5bac1bb1.zip |
Also pass the options along
-rw-r--r-- | rpmbuild-remote.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmbuild-remote.py b/rpmbuild-remote.py index 2cc504c..271a38f 100644 --- a/rpmbuild-remote.py +++ b/rpmbuild-remote.py @@ -103,7 +103,7 @@ def read_preferences(opts): system['port'] = opts.port return system -def execute_jobs(system, jobs): +def execute_jobs(opts, system, jobs): session = paramiko.SSHClient() session.connect(system['host'], port=system['port'], username=system['user'], key_filename=system['ssh_key']) @@ -143,7 +143,7 @@ def main(): jobs[-1].append(arg) # Read the preferences file system = read_preferences(opts) - execute_jobs(system, jobs) + execute_jobs(opts, system, jobs) if __name__ == '__main__': main() |