Revision 56bece1f lib/ssh.py

b/lib/ssh.py
71 71
  """Wrapper for SSH commands.
72 72

  
73 73
  """
74
  def __init__(self, cfg):
75
    self.cfg = cfg
74
  def __init__(self, cluster_name):
75
    self.cluster_name = cluster_name
76 76

  
77 77
  def _BuildSshOptions(self, batch, ask_key, use_cluster_key,
78 78
                       strict_host_check):
......
84 84
      ]
85 85

  
86 86
    if use_cluster_key:
87
      options.append("-oHostKeyAlias=%s" % self.cfg.GetClusterName())
87
      options.append("-oHostKeyAlias=%s" % self.cluster_name)
88 88

  
89 89
    # TODO: Too many boolean options, maybe convert them to more descriptive
90 90
    # constants.

Also available in: Unified diff