diff --git a/templates/.composer/auth.json.j2 b/templates/.composer/auth.json.j2
index 7ff0344a957398f42569c48e0b1a2b2a1c73fee1..f5bb15f6c3c661752e89c9ee01dff8ee46f87977 100644
--- a/templates/.composer/auth.json.j2
+++ b/templates/.composer/auth.json.j2
@@ -1,7 +1,7 @@
 {
     {% if composer_http_basic %}
     "http-basic": {
-        {% for repository,credentials in composer_http_basic.iteritems() %}
+        {% for repository,credentials in composer_http_basic.items() %}
         {% if loop.index0 %},{% endif %}
         "{{ repository }}": {
             "username": "{{ credentials.username }}",