libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [2/2] git commit: On GCE, Images no longer always have preferredKernel set.
Date Mon, 02 Dec 2013 23:27:23 GMT
On GCE, Images no longer always have preferredKernel set.

Signed-off-by: Tomaz Muraus <tomaz@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/cb5901aa
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/cb5901aa
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/cb5901aa

Branch: refs/heads/trunk
Commit: cb5901aace9e3d7546ab581af1b444a14c79975b
Parents: 6ee7278
Author: Rick Wright <rickw@google.com>
Authored: Mon Dec 2 15:00:59 2013 -0800
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Tue Dec 3 00:23:32 2013 +0100

----------------------------------------------------------------------
 libcloud/compute/drivers/gce.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/cb5901aa/libcloud/compute/drivers/gce.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/gce.py b/libcloud/compute/drivers/gce.py
index 6910fdf..6c7ceeb 100644
--- a/libcloud/compute/drivers/gce.py
+++ b/libcloud/compute/drivers/gce.py
@@ -2469,7 +2469,7 @@ class GCENodeDriver(NodeDriver):
         :rtype: :class:`NodeImage`
         """
         extra = {}
-        extra['preferredKernel'] = image['preferredKernel']
+        extra['preferredKernel'] = image.get('preferredKernel', None)
         extra['description'] = image.get('description', None)
         extra['creationTimestamp'] = image['creationTimestamp']
         extra['selfLink'] = image['selfLink']


Mime
View raw message