Skip to content

Commit

Permalink
Fix compatibility with Python 3
Browse files Browse the repository at this point in the history
Switch iteritems -> items for relation iteration.

Change-Id: Ife80d3fecf94d250e1ed0b48596a5472667aa0ac
  • Loading branch information
javacruft committed Jun 17, 2020
1 parent b11819c commit 5338427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/glance-simplestreams-sync.py
Expand Up @@ -396,7 +396,7 @@ def update_endpoint_urls(region, publicurl, adminurl, internalurl):
'admin_url': adminurl,
'internal_url': internalurl
}
for k, v in relation_data.iteritems():
for k, v in relation_data.items():
_cmd.append('{}={}'.format(k, v))
juju_run_cmd(_cmd)

Expand Down

0 comments on commit 5338427

Please sign in to comment.