Merge "Replace six.iteritems() with .items()"

This commit is contained in:
Jenkins 2017-04-22 04:09:46 +00:00 committed by Gerrit Code Review
commit 4bfd7b2327
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ def convert(filename):
print("Error couldn't find run-os-net-config.sh relative to filename")
exit_usage()
for r in six.iteritems(tpl.get('resources', {})):
for r in (tpl.get('resources', {})).items():
if (r[1].get('type') == 'OS::Heat::StructuredConfig' and
r[1].get('properties', {}).get('group') == 'os-apply-config' and
r[1].get('properties', {}).get('config', {}).get('os_net_config')):