Remove dead code

get_node_by_instance_uuid will never return None,
so the OR condition is dead code.

Change-Id: I26c553e1067a3cbeac6c0afe1c4bfdee4d939055
This commit is contained in:
licanwei
2019-06-13 17:31:49 +08:00
parent 46a36d1ad7
commit 7281f6184f

View File

@@ -159,7 +159,7 @@ class NovaNotification(base.NotificationEndpoint):
try:
current_node = (
self.cluster_data_model.get_node_by_instance_uuid(
instance.uuid) or self.get_or_create_node(node.uuid))
instance.uuid))
except exception.ComputeNodeNotFound as exc:
LOG.exception(exc)
# If we can't create the node,