LIBCLOUD-759 Changed SoftLayer Node driver to use pricing information Closes #603
Signed-off-by: Tomaz Muraus <to...@apache.org> 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 <david.wilson2...@gmail.com> Authored: Thu Oct 15 16:46:28 2015 +0000 Committer: Tomaz Muraus <to...@apache.org> 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, )