Commit ceb76b36 authored by Guido Trotter's avatar Guido Trotter
Browse files

Verify: remove useless check in _VerifyInstance

The list of instances passed to _VerifyInstance is the one coming from
self.cfg.GetInstanceList(). So there's no point, inside that function, in
checking whether the current instance is a member of that list. Moreover
orphaned instance verification is already done in a separate step.

Reviewed-by: imsnah
parent c5705f58
......@@ -685,12 +685,6 @@ class LUVerifyCluster(NoHooksLU):
bad = False
instancelist = self.cfg.GetInstanceList()
if not instance in instancelist:
feedback_fn(" - ERROR: instance %s not in instance list %s" %
(instance, instancelist))
bad = True
node_current = instanceconfig.primary_node
node_vol_should = {}
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