Revision 661515f6 lib/cmdlib.py

b/lib/cmdlib.py
139 139
    self.remove_locks = {}
140 140
    # Used to force good behavior when calling helper functions
141 141
    self.recalculate_locks = {}
142
    self.__ssh = None
143 142
    # logging
144 143
    self.Log = processor.Log # pylint: disable-msg=C0103
145 144
    self.LogWarning = processor.LogWarning # pylint: disable-msg=C0103
......
160 159

  
161 160
    self.CheckArguments()
162 161

  
163
  def __GetSSH(self):
164
    """Returns the SshRunner object
165

  
166
    """
167
    if not self.__ssh:
168
      self.__ssh = ssh.SshRunner(self.cfg.GetClusterName())
169
    return self.__ssh
170

  
171
  ssh = property(fget=__GetSSH)
172

  
173 162
  def CheckArguments(self):
174 163
    """Check syntactic validity for the opcode arguments.
175 164

  

Also available in: Unified diff