Skip to content
Snippets Groups Projects
Commit bf75f132 authored by Iustin Pop's avatar Iustin Pop
Browse files

SshRunner: add docstring for _BuildSshOptions

Reviewed-by: amishchenko
parent 67047322
No related branches found
No related tags found
No related merge requests found
...@@ -75,6 +75,19 @@ class SshRunner: ...@@ -75,6 +75,19 @@ class SshRunner:
def _BuildSshOptions(self, batch, ask_key, use_cluster_key, def _BuildSshOptions(self, batch, ask_key, use_cluster_key,
strict_host_check): strict_host_check):
"""Builds a list with needed SSH options.
@param batch: same as ssh's batch option
@param ask_key: allows ssh to ask for key confirmation; this
parameter conflicts with the batch one
@param use_cluster_key: if True, use the cluster name as the
HostKeyAlias name
@param strict_host_check: this makes the host key checking strict
@rtype: list
@return: the list of options ready to use in L{utils.RunCmd}
"""
options = [ options = [
"-oEscapeChar=none", "-oEscapeChar=none",
"-oHashKnownHosts=no", "-oHashKnownHosts=no",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment