From 49abbd3ec14626a2e113aa11ae95cb08c62748e1 Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Thu, 26 Jun 2008 14:41:47 +0000 Subject: [PATCH] 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 --- lib/cmdlib.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index c2fa8a617..c1f08129f 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -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. -- GitLab