Fix case where paramiko doesn't find any ssh keys #15

merged 1 commit into from Feb 23, 2013


None yet

2 participants

jmathes commented Feb 20, 2013

At least some versions of paramiko's ssh agent objects are born without a keys attribute if they don't have any keys, as opposed to agent.keys as empty list. Check for that case with hasattr before checking whether the keys attribute is falsy

@epall epall merged commit 7da57d0 into epall:master Feb 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment