Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0B229200CF7 for ; Tue, 19 Sep 2017 23:01:02 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 07CEC1609E9; Tue, 19 Sep 2017 21:01:02 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 570611609BF for ; Tue, 19 Sep 2017 23:01:01 +0200 (CEST) Received: (qmail 16156 invoked by uid 500); 19 Sep 2017 21:01:00 -0000 Mailing-List: contact notifications-help@libcloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@libcloud.apache.org Delivered-To: mailing list notifications@libcloud.apache.org Received: (qmail 16140 invoked by uid 500); 19 Sep 2017 21:01:00 -0000 Delivered-To: apmail-libcloud-commits@libcloud.apache.org Received: (qmail 16135 invoked by uid 99); 19 Sep 2017 21:01:00 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Sep 2017 21:01:00 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 8EC09F5784; Tue, 19 Sep 2017 21:00:59 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: tomaz@apache.org To: commits@libcloud.apache.org Date: Tue, 19 Sep 2017 21:01:01 -0000 Message-Id: <14a908ee4d80405bb03c04484f902587@git.apache.org> In-Reply-To: <53d9b64846bf4200bb7c8536ee81e7a7@git.apache.org> References: <53d9b64846bf4200bb7c8536ee81e7a7@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [03/11] libcloud git commit: Updated code so it's also compatible with Python 2.6 archived-at: Tue, 19 Sep 2017 21:01:02 -0000 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 Authored: Wed Aug 30 18:22:52 2017 -0300 Committer: Lucas Di Pentima 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