summaryrefslogtreecommitdiff
path: root/heat/engine/resources/wait_condition.py
diff options
context:
space:
mode:
authorTetiana Lashchova <tlashchova@mirantis.com>2015-04-20 20:37:57 +0300
committerTetiana Lashchova <tlashchova@mirantis.com>2015-04-21 09:05:49 +0300
commit4c6810ce1ab224ab6ff06103825abc5978e4679d (patch)
tree3f00de7065b89a916281f107e3833c41f630b4cd /heat/engine/resources/wait_condition.py
parent5854f1d121d11faebd6e962e251d2e84bda801de (diff)
downloadheat-4c6810ce1ab224ab6ff06103825abc5978e4679d.tar.gz
Use six.itervalues(x) instead of x.values()
Change-Id: Ie71072940b7b5e599d9012be0bc1874b2a623003 Partial-Bug: #1446254
Diffstat (limited to 'heat/engine/resources/wait_condition.py')
-rw-r--r--heat/engine/resources/wait_condition.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/heat/engine/resources/wait_condition.py b/heat/engine/resources/wait_condition.py
index 704ea05d6..f735fe7e4 100644
--- a/heat/engine/resources/wait_condition.py
+++ b/heat/engine/resources/wait_condition.py
@@ -12,6 +12,7 @@
# under the License.
from oslo_log import log as logging
+import six
from heat.common import exception
from heat.common.i18n import _
@@ -78,14 +79,14 @@ class BaseWaitConditionHandle(signal_responder.SignalResponder):
Return a list of the Status values for the handle signals
'''
return [v[self.STATUS]
- for v in self.metadata_get(refresh=True).values()]
+ for v in six.itervalues(self.metadata_get(refresh=True))]
def get_status_reason(self, status):
'''
Return a list of reasons associated with a particular status
'''
return [v[self.REASON]
- for v in self.metadata_get(refresh=True).values()
+ for v in six.itervalues(self.metadata_get(refresh=True))
if v[self.STATUS] == status]