Revision c4b6c29c lib/bootstrap.py

b/lib/bootstrap.py
243 243
    logging.warning("Could not shutdown the node daemon and cleanup the node")
244 244

  
245 245

  
246
def SetupNodeDaemon(node):
246
def SetupNodeDaemon(node, ssh_key_check):
247 247
  """Add a node to the cluster.
248 248

  
249 249
  This function must be called before the actual opcode, and will ssh
......
285 285
                constants.SSL_CERT_FILE, gntpem,
286 286
                constants.NODE_INITD_SCRIPT))
287 287

  
288
  result = sshrunner.Run(node, 'root', mycommand, batch=False, ask_key=True,
289
                         use_cluster_key=False)
288
  result = sshrunner.Run(node, 'root', mycommand, batch=False,
289
                         ask_key=ssh_key_check,
290
                         use_cluster_key=False,
291
                         strict_host_check=ssh_key_check)
290 292
  if result.failed:
291 293
    raise errors.OpExecError("Remote command on node %s, error: %s,"
292 294
                             " output: %s" %

Also available in: Unified diff