summaryrefslogtreecommitdiffstats
path: root/rpmbuild-remote.py
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-09-08 21:06:56 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-09-08 21:06:56 -0400
commit6e44dbd24b6edb7fbcfe3b6127b1dc075180955e (patch)
tree293fb5fc58e9fe77af82b7e49ef66a11f9d58734 /rpmbuild-remote.py
parentb8808664e09634f3f0493260e4f66f3e4d5b147e (diff)
downloadrpmbuild-remote-6e44dbd24b6edb7fbcfe3b6127b1dc075180955e.zip
rpmbuild-remote-6e44dbd24b6edb7fbcfe3b6127b1dc075180955e.tar.gz
rpmbuild-remote-6e44dbd24b6edb7fbcfe3b6127b1dc075180955e.tar.xz
Allow for searching of keys with no specific one set
Diffstat (limited to 'rpmbuild-remote.py')
-rw-r--r--rpmbuild-remote.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/rpmbuild-remote.py b/rpmbuild-remote.py
index c2aedd7..a8360f1 100644
--- a/rpmbuild-remote.py
+++ b/rpmbuild-remote.py
@@ -35,9 +35,7 @@ def get_parser():
help="The remote machine to use (defined in config file)")
parser.add_option("-k", "--ssh-key",
action="store", type="string", dest="ssh_key",
- default=os.path.join(home, ".ssh/id_rsa")
- help="The private SSH key to use to login. "
- "[Default: ~/.ssh/id_rsa]")
+ help="The private SSH key to use to login.")
parser.add_option("-u", "--user",
action="store", type="string", dest="user",
default=os.getlogin(),
@@ -96,7 +94,8 @@ def read_preferences(options):
if 'user' not in system:
system['user'] = options.user
if 'ssh_key' not in system:
- system['ssh_key'] = options.ssh_key
+ if not options.ssh_key is None:
+ system['ssh_key'] = options.ssh_key
if 'host' not in system:
if options.host is None:
LOG.error("Host not set")