libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [2/4] libcloud git commit: Updated code so it's Python 3 compatible.
Date Fri, 01 Sep 2017 12:07:29 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/36826f00
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/36826f00
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/36826f00

Branch: refs/heads/trunk
Commit: 36826f00f6be5af6e08c53abb84d4a502125c389
Parents: 0d1be1d
Author: Lucas Di Pentima <ldipentima@veritasgenetics.com>
Authored: Wed Aug 30 18:03:47 2017 -0300
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Fri Sep 1 22:07:04 2017 +1000

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/36826f00/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