You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2017/09/19 21:01:01 UTC
[03/11] libcloud git commit: Updated code so it's also compatible
with Python 2.6
Updated code so it's also compatible with Python 2.6
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/f9118e8d
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/f9118e8d
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/f9118e8d
Branch: refs/heads/trunk
Commit: f9118e8d62825e42fd155b387bcdf8472f089783
Parents: 386456c
Author: Lucas Di Pentima <ld...@veritasgenetics.com>
Authored: Wed Aug 30 18:22:52 2017 -0300
Committer: Lucas Di Pentima <ld...@veritasgenetics.com>
Committed: Wed Aug 30 18:22:52 2017 -0300
----------------------------------------------------------------------
libcloud/compute/drivers/ec2.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/f9118e8d/libcloud/compute/drivers/ec2.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/ec2.py b/libcloud/compute/drivers/ec2.py
index 9737e13..f2526b0 100644
--- a/libcloud/compute/drivers/ec2.py
+++ b/libcloud/compute/drivers/ec2.py
@@ -3773,9 +3773,9 @@ class BaseEC2NodeDriver(NodeDriver):
params[tagspec_root + 'ResourceType'] = 'instance'
tag_nr = 1
for k, v in tags.items():
- tag_root = tagspec_root + "Tag.{}.".format(tag_nr)
- params[tag_root + "Key"] = k
- params[tag_root + "Value"] = v
+ tag_root = tagspec_root + 'Tag.%d.' % tag_nr
+ params[tag_root + 'Key'] = k
+ params[tag_root + 'Value'] = v
tag_nr += 1
object = self.connection.request(self.path, params=params).object