Return-Path: X-Original-To: apmail-libcloud-notifications-archive@www.apache.org Delivered-To: apmail-libcloud-notifications-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 063B317726 for ; Mon, 20 Apr 2015 04:27:59 +0000 (UTC) Received: (qmail 62179 invoked by uid 500); 20 Apr 2015 04:27:58 -0000 Delivered-To: apmail-libcloud-notifications-archive@libcloud.apache.org Received: (qmail 62144 invoked by uid 500); 20 Apr 2015 04:27:58 -0000 Mailing-List: contact notifications-help@libcloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@libcloud.apache.org Delivered-To: mailing list notifications@libcloud.apache.org Received: (qmail 62134 invoked by uid 99); 20 Apr 2015 04:27:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Apr 2015 04:27:58 +0000 Date: Mon, 20 Apr 2015 04:27:58 +0000 (UTC) From: "Jason DeTiberus (JIRA)" To: notifications@libcloud.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (LIBCLOUD-696) GCE Compute driver returns null for image. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Jason DeTiberus created LIBCLOUD-696: ---------------------------------------- Summary: GCE Compute driver returns null for image. Key: LIBCLOUD-696 URL: https://issues.apache.org/jira/browse/LIBCLOUD-696 Project: Libcloud Issue Type: Bug Components: Compute Reporter: Jason DeTiberus Priority: Minor The GCE Compute driver is currently returning null for image. The issue appears to be related to a change in the data returned from the api. In libcloud/compute/drivers/gce.py: {code:none|title=_to_node} extra['image'] = node.get('image') ... for disk in extra['disks']: if disk.get('boot') and disk.get('type') == 'PERSISTENT': bd = self._get_components_from_path(disk['source']) extra['boot_disk'] = self.ex_get_volume(bd['name'], bd['zone']) extra['image'] = bd['name'] ... if extra['image']: image = self._get_components_from_path(extra['image'])['name'] else: image = None {code} This looks like it should be: {code:none} for disk in extra['disks']: if disk.get('boot') and disk.get('type') == 'PERSISTENT': bd = self._get_components_from_path(disk['source']) extra['boot_disk'] = self.ex_get_volume(bd['name'], bd['zone']) extra['image'] = bd['name'] ... if extra['image']: image = self._get_components_from_path(extra['image'])['name'] else: image = None {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)