~deryck/groundcontrol/keyword-search-name

« back to all changes in this revision

Viewing changes to GroundControl/sshkeys.py

  • Committer: Martin Owens
  • Date: 2010-04-24 21:07:03 UTC
  • Revision ID: doctormo@gmail.com-20100424210703-qsaoghd1sl0z0p98
Fix a couple of login issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    """Compares a public key to the local stored keys"""
40
40
    find_key = find_key.replace("\n",'').replace("\r",'')
41
41
    # Select the middle part of the ssh key
 
42
    if ' ' not in find_key:
 
43
        return False
42
44
    find_key = find_key.split(' ')[1]
43
45
    for key in list_pubkeys():
44
46
        if find_key in key: