summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpangliye <pangliye@inspur.com>2018-02-09 14:18:44 +0800
committerpangliye <pangliye@inspur.com>2018-02-09 14:19:39 +0800
commitc17bc17552f221e17e0c3a04779d4cfa31c00641 (patch)
tree328a45bf5a504bee9172262cdf35a8e22d7476d3
parentbaaaac83347616412ac1c539ec872a0860cfc2d7 (diff)
fix misspelling of 'return'
Notes
Notes (review): Code-Review+2: Tao Li <litao3721@126.com> Code-Review+2: Zhenguo Niu <Niu.ZGlinux@gmail.com> Workflow+1: Zhenguo Niu <Niu.ZGlinux@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 27 Feb 2018 02:50:31 +0000 Reviewed-on: https://review.openstack.org/542614 Project: openstack/mogan Branch: refs/heads/master
-rw-r--r--mogan/engine/manager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mogan/engine/manager.py b/mogan/engine/manager.py
index 884a440..be9b63e 100644
--- a/mogan/engine/manager.py
+++ b/mogan/engine/manager.py
@@ -141,7 +141,7 @@ class EngineManager(base_manager.BaseEngineManager):
141 LOG.warning( 141 LOG.warning(
142 ("Failed to retrieve node list when synchronizing power " 142 ("Failed to retrieve node list when synchronizing power "
143 "states: %(msg)s") % {"msg": e}) 143 "states: %(msg)s") % {"msg": e})
144 # Just retrun if we fail to get nodes real power state. 144 # Just return if we fail to get nodes real power state.
145 return 145 return
146 146
147 node_dict = {node.instance_uuid: node for node in nodes 147 node_dict = {node.instance_uuid: node for node in nodes
@@ -247,7 +247,7 @@ class EngineManager(base_manager.BaseEngineManager):
247 LOG.warning( 247 LOG.warning(
248 "Failed to retrieve node list when synchronizing " 248 "Failed to retrieve node list when synchronizing "
249 "maintenance states: %(msg)s" % {"msg": e}) 249 "maintenance states: %(msg)s" % {"msg": e})
250 # Just retrun if we fail to get nodes maintenance state. 250 # Just return if we fail to get nodes maintenance state.
251 return 251 return
252 252
253 node_dict = {node.instance_uuid: node for node in nodes} 253 node_dict = {node.instance_uuid: node for node in nodes}