You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2017/04/29 01:09:23 UTC
[3/6] libcloud git commit: Additional fields in extra dict of Vultr
sizes
Additional fields in extra dict of Vultr sizes
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/0a251020
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/0a251020
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/0a251020
Branch: refs/heads/trunk
Commit: 0a2510205870685baf7d76337232a2a0d484d3e7
Parents: 4510153
Author: Francisco Ros <fj...@doalitic.com>
Authored: Mon Apr 24 19:11:07 2017 +0200
Committer: Francisco Ros <fj...@doalitic.com>
Committed: Tue Apr 25 16:15:55 2017 +0200
----------------------------------------------------------------------
libcloud/compute/drivers/vultr.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/0a251020/libcloud/compute/drivers/vultr.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/vultr.py b/libcloud/compute/drivers/vultr.py
index 0313144..52251aa 100644
--- a/libcloud/compute/drivers/vultr.py
+++ b/libcloud/compute/drivers/vultr.py
@@ -300,7 +300,11 @@ class VultrNodeDriver(NodeDriver):
country=data['country'], driver=self)
def _to_size(self, data):
- extra = {'vcpu_count': int(data['vcpu_count'])}
+ extra = {
+ 'vcpu_count': int(data['vcpu_count']),
+ 'plan_type': data['plan_type'],
+ 'available_locations': data['available_locations']
+ }
ram = int(data['ram'])
disk = int(data['disk'])
bandwidth = float(data['bandwidth'])