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:
@@ -159,7 +159,7 @@ class NovaNotification(base.NotificationEndpoint):
|
|||||||
try:
|
try:
|
||||||
current_node = (
|
current_node = (
|
||||||
self.cluster_data_model.get_node_by_instance_uuid(
|
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:
|
except exception.ComputeNodeNotFound as exc:
|
||||||
LOG.exception(exc)
|
LOG.exception(exc)
|
||||||
# If we can't create the node,
|
# If we can't create the node,
|
||||||
|
|||||||
Reference in New Issue
Block a user