Skip to content

Commit

Permalink
remove the use of iteritems
Browse files Browse the repository at this point in the history
iteritems is a py2 callable and will break when using py3.

Change-Id: Icea444baea8f3597cb8dd24e3d61e9ed0926cdf5
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
  • Loading branch information
cloudnull committed Aug 2, 2017
1 parent c5d588f commit 2d1dd94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action/_v1_config_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def _merge_dict(self, base_items, new_items, list_extend=True):
:param new_items: ``dict``
:returns: ``dict``
"""
for key, value in new_items.iteritems():
for key, value in new_items.items():
if isinstance(value, dict):
base_items[key] = self._merge_dict(
base_items.get(key, {}),
Expand Down
2 changes: 1 addition & 1 deletion library/magnum
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class ManageMagnum(object):
)
else:
try:
for opt, val in template_opts.iteritems():
for opt, val in template_opts.items():
if (val != getattr(template, opt) and
val is not None):
updates.append({opt: val})
Expand Down

0 comments on commit 2d1dd94

Please sign in to comment.