Revision d12b9f66 lib/utils/io.py

b/lib/utils/io.py
828 828
  return None
829 829

  
830 830

  
831
_SSH_KEYS_WITH_TWO_PARTS = frozenset(["ssh-dss", "ssh-rsa"])
832

  
833

  
834 831
def _SplitSshKey(key):
835 832
  """Splits a line for SSH's C{authorized_keys} file.
836 833

  
......
845 842
  """
846 843
  parts = key.split()
847 844

  
848
  if parts and parts[0] in _SSH_KEYS_WITH_TWO_PARTS:
845
  if parts and parts[0] in constants.SSHAK_ALL:
849 846
    # If the key has no options in front of it, we only want the significant
850 847
    # fields
851 848
    return (False, parts[:2])

Also available in: Unified diff