Repository: libcloud Updated Branches: refs/heads/trunk 84735c892 -> 6e1c40654
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/c07548e7 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/c07548e7 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/c07548e7 Branch: refs/heads/trunk Commit: c07548e734e3d019c6f7002ae31016d862830148 Parents: 36826f0 Author: Lucas Di Pentima <[email protected]> Authored: Wed Aug 30 18:22:52 2017 -0300 Committer: Anthony Shaw <[email protected]> Committed: Fri Sep 1 22:07:04 2017 +1000 ---------------------------------------------------------------------- libcloud/compute/drivers/ec2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/c07548e7/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
