libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [02/11] libcloud git commit: Updated code so it's Python 3 compatible.
Date Tue, 19 Sep 2017 21:01:00 GMT
Updated code so it's Python 3 compatible.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/386456c2
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/386456c2
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/386456c2

Branch: refs/heads/trunk
Commit: 386456c245a3518254f5f6a045832ceb6451e486
Parents: 379cfe7
Author: Lucas Di Pentima <ldipentima@veritasgenetics.com>
Authored: Wed Aug 30 18:03:47 2017 -0300
Committer: Lucas Di Pentima <ldipentima@veritasgenetics.com>
Committed: Wed Aug 30 18:03:47 2017 -0300

----------------------------------------------------------------------
 libcloud/compute/drivers/ec2.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/386456c2/libcloud/compute/drivers/ec2.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/ec2.py b/libcloud/compute/drivers/ec2.py
index fd807aa..9737e13 100644
--- a/libcloud/compute/drivers/ec2.py
+++ b/libcloud/compute/drivers/ec2.py
@@ -3772,7 +3772,7 @@ class BaseEC2NodeDriver(NodeDriver):
         tagspec_root = 'TagSpecification.1.'
         params[tagspec_root + 'ResourceType'] = 'instance'
         tag_nr = 1
-        for k, v in tags.iteritems():
+        for k, v in tags.items():
             tag_root = tagspec_root + "Tag.{}.".format(tag_nr)
             params[tag_root + "Key"] = k
             params[tag_root + "Value"] = v


Mime
View raw message