libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vd...@apache.org
Subject [22/23] libcloud git commit: Fix error in ex_list_ports if created_at is not in result
Date Tue, 04 Dec 2018 08:54:37 GMT
Fix error in ex_list_ports if created_at is not in result

Signed-off-by: Rick van de Loo <rickvandeloo@gmail.com>


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

Branch: refs/heads/trunk
Commit: 23e8d08439f430d74524fdafd4a67f5fff84f339
Parents: 85b6f4a
Author: micafer <micafer1@upv.es>
Authored: Thu Nov 29 16:47:54 2018 +0100
Committer: Rick van de Loo <rickvandeloo@gmail.com>
Committed: Tue Dec 4 09:47:53 2018 +0100

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/23e8d084/libcloud/compute/drivers/openstack.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/openstack.py b/libcloud/compute/drivers/openstack.py
index 5a64f26..5affde6 100644
--- a/libcloud/compute/drivers/openstack.py
+++ b/libcloud/compute/drivers/openstack.py
@@ -2668,7 +2668,7 @@ class OpenStack_2_NodeDriver(OpenStack_1_1_NodeDriver):
         super(OpenStack_2_NodeDriver, self).__init__(*args, **kwargs)
 
     def _to_port(self, element):
-        created = element['created_at']
+        created = element.get('created_at')
         updated = element.get('updated_at')
         return OpenStack_2_PortInterface(
             id=element['id'],


Mime
View raw message