Skip to content

Commit

Permalink
Merge pull request #15 from jmathes/master
Browse files Browse the repository at this point in the history
Fix case where paramiko doesn't find any ssh keys
  • Loading branch information
epall committed Feb 23, 2013
2 parents 5d92fa5 + 0e41f1b commit 7da57d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dripbox.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def launch(username_p, host_p, remote_path, port_p=None):


def get_ssh_key(): def get_ssh_key():
agent = paramiko.Agent() agent = paramiko.Agent()
if agent.keys: if hasattr(agent, 'keys') and agent.keys:
# TODO: support having more than one key loaded # TODO: support having more than one key loaded
if len(agent.keys) > 1: if len(agent.keys) > 1:
print ("You have more than one key in your SSH Agent" print ("You have more than one key in your SSH Agent"
Expand Down

0 comments on commit 7da57d0

Please sign in to comment.