Return-Path: X-Original-To: apmail-libcloud-notifications-archive@www.apache.org Delivered-To: apmail-libcloud-notifications-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C5D9D1826F for ; Mon, 19 Oct 2015 12:24:06 +0000 (UTC) Received: (qmail 23590 invoked by uid 500); 19 Oct 2015 12:24:06 -0000 Delivered-To: apmail-libcloud-notifications-archive@libcloud.apache.org Received: (qmail 23533 invoked by uid 500); 19 Oct 2015 12:24:06 -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 23405 invoked by uid 500); 19 Oct 2015 12:24:06 -0000 Delivered-To: apmail-libcloud-commits@libcloud.apache.org Received: (qmail 23402 invoked by uid 99); 19 Oct 2015 12:24:06 -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; Mon, 19 Oct 2015 12:24:06 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 171CCE0286; Mon, 19 Oct 2015 12:24:06 +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: Mon, 19 Oct 2015 12:24:06 -0000 Message-Id: <790ceabd7aa844e1b57c5f28c831c904@git.apache.org> In-Reply-To: <4a2dec4784e44576bfb60d1b2b23ad14@git.apache.org> References: <4a2dec4784e44576bfb60d1b2b23ad14@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/4] libcloud git commit: LIBCLOUD-759 Changed SoftLayer Node driver to use pricing information LIBCLOUD-759 Changed SoftLayer Node driver to use pricing information Closes #603 Signed-off-by: Tomaz Muraus Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/70bd1aa9 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/70bd1aa9 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/70bd1aa9 Branch: refs/heads/trunk Commit: 70bd1aa94433020925402db44cdcad23d13bc0d9 Parents: a73e7b2 Author: David Wilson Authored: Thu Oct 15 16:46:28 2015 +0000 Committer: Tomaz Muraus Committed: Mon Oct 19 14:15:32 2015 +0200 ---------------------------------------------------------------------- libcloud/compute/drivers/softlayer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/70bd1aa9/libcloud/compute/drivers/softlayer.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/softlayer.py b/libcloud/compute/drivers/softlayer.py index d14b479..5243d0b 100644 --- a/libcloud/compute/drivers/softlayer.py +++ b/libcloud/compute/drivers/softlayer.py @@ -150,6 +150,7 @@ class SoftLayerNodeDriver(NodeDriver): type = Provider.SOFTLAYER features = {'create_node': ['generates_password', 'ssh_key']} + api_name = 'softlayer' def _to_node(self, host): try: @@ -438,7 +439,7 @@ class SoftLayerNodeDriver(NodeDriver): ram=size['ram'], disk=size['disk'], bandwidth=size.get('bandwidth'), - price=None, + price=self._get_size_price(str(id)), driver=self.connection.driver, )