Signed-off-by: Manuel Franceschini <livewire@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
def FormatParamikoFingerprint(fingerprint):
- """Formats the fingerprint of L{paramiko.PKey.get_fingerprint()}
+ """Format paramiko PKey fingerprint.
@type fingerprint: str
@param fingerprint: PKey fingerprint
- @return The string hex representation of the fingerprint
+ @return: The string hex representation of the fingerprint
"""
assert len(fingerprint) % 2 == 0
def LoadPrivateKeys(options):
- """Load the list of available private keys
+ """Load the list of available private keys.
It loads the standard ssh key from disk and then tries to connect to
the ssh agent too.
def LoadKnownHosts():
- """Loads the known hosts
+ """Load the known hosts.
- @return L{paramiko.util.load_host_keys} dict
+ @return: paramiko.util.load_host_keys dict
"""
homedir = utils.GetHomeDir(constants.GANETI_RUNAS)