Commit 49abbd3e authored by Guido Trotter's avatar Guido Trotter
Browse files

Remove spurious check during LUAddNode

There is no point in checking whether the cluster VNC password file
exists as a prerequisite for AddNode, considering the check happens on
the master node, not the target one. Removing this check.

Reviewed-by: iustinp
parent d08869ee
......@@ -1525,11 +1525,6 @@ class LUAddNode(LogicalUnit):
primary_ip=primary_ip,
secondary_ip=secondary_ip)
if self.sstore.GetHypervisorType() == constants.HT_XEN_HVM31:
if not os.path.exists(constants.VNC_PASSWORD_FILE):
raise errors.OpPrereqError("Cluster VNC password file %s missing" %
constants.VNC_PASSWORD_FILE)
def Exec(self, feedback_fn):
"""Adds the new node to the cluster.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment