You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2019/08/23 15:32:02 UTC

[libcloud] branch trunk updated: Add support for "cpuPlatform" field in GCE driver

This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 5cbd788  Add support for "cpuPlatform" field in GCE driver
     new 52cd83c  Merge pull request #1343 from yairshemla/gce_driver_add_missing_cpu_platform_field
5cbd788 is described below

commit 5cbd7888f505a527b3e48765680801066c6c2b08
Author: Yair Shemla <ya...@guardicore.com>
AuthorDate: Tue Aug 20 10:28:33 2019 +0300

    Add support for "cpuPlatform" field in GCE driver
---
 libcloud/compute/drivers/gce.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libcloud/compute/drivers/gce.py b/libcloud/compute/drivers/gce.py
index 94ac243..21e8fd3 100644
--- a/libcloud/compute/drivers/gce.py
+++ b/libcloud/compute/drivers/gce.py
@@ -8849,6 +8849,8 @@ class GCENodeDriver(NodeDriver):
         extra['zone'] = self.ex_get_zone(node['zone'])
         extra['image'] = node.get('image')
         extra['machineType'] = node.get('machineType')
+        extra['cpuPlatform'] = node.get('cpuPlatform')
+        extra['minCpuPlatform'] = node.get('minCpuPlatform')
         extra['disks'] = node.get('disks', [])
         extra['networkInterfaces'] = node.get('networkInterfaces')
         extra['id'] = node['id']