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 2013/12/03 00:27:23 UTC
[2/2] git commit: On GCE,
Images no longer always have preferredKernel set.
On GCE, Images no longer always have preferredKernel set.
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/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 <ri...@google.com>
Authored: Mon Dec 2 15:00:59 2013 -0800
Committer: Tomaz Muraus <to...@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']