summaryrefslogtreecommitdiff
path: root/heatclient/common/template_utils.py
diff options
context:
space:
mode:
authorCyril Roelandt <cyril.roelandt@enovance.com>2014-02-12 02:32:18 +0100
committerCyril Roelandt <cyril.roelandt@enovance.com>2014-02-12 02:32:18 +0100
commitc7c96995e6d6621b0e0f08c74fa426349275c127 (patch)
tree0158516993f4ee2762cdf8fb3737a8f165a877e6 /heatclient/common/template_utils.py
parent448d303790167abc7239db60408888f3d209ac6c (diff)
downloadpython-heatclient-c7c96995e6d6621b0e0f08c74fa426349275c127.tar.gz
get_file_contents: use six.itervalues() instead of dict.itervalues()
This is compatible with both Python 2 and 3. Change-Id: I7429efe3ee5fd1dabf9bb607dcd3860057a8569f
Diffstat (limited to 'heatclient/common/template_utils.py')
-rw-r--r--heatclient/common/template_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/heatclient/common/template_utils.py b/heatclient/common/template_utils.py
index ccf5c37..3debf28 100644
--- a/heatclient/common/template_utils.py
+++ b/heatclient/common/template_utils.py
@@ -78,7 +78,7 @@ def get_file_contents(from_data, files, base_url=None,
if recurse_if and recurse_if(from_data):
if isinstance(from_data, dict):
- recurse_data = from_data.itervalues()
+ recurse_data = six.itervalues(from_data)
else:
recurse_data = from_data
for value in recurse_data: