libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [10/20] libcloud git commit: FAM-690 Disk size fix
Date Fri, 11 Aug 2017 05:00:52 GMT
FAM-690 Disk size fix


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

Branch: refs/heads/trunk
Commit: c0c6e56190f4286a1ea85f96e4d8c9449bc78a3c
Parents: 4ab938a
Author: mermoldy <s.babak@scalr.com>
Authored: Fri Mar 10 15:41:50 2017 +0200
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Fri Aug 11 14:59:31 2017 +1000

----------------------------------------------------------------------
 libcloud/compute/drivers/azure_arm.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/c0c6e561/libcloud/compute/drivers/azure_arm.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/azure_arm.py b/libcloud/compute/drivers/azure_arm.py
index b85eb77..cc5f370 100644
--- a/libcloud/compute/drivers/azure_arm.py
+++ b/libcloud/compute/drivers/azure_arm.py
@@ -1105,7 +1105,9 @@ class AzureNodeDriver(NodeDriver):
         volume_name = volume_obj.get('name')
         extra = dict(volume_obj)
         properties = extra['properties']
-        size = int(properties['diskSizeGB'])
+        size = properties.get('diskSizeGB')
+        if size is not None:
+            size = int(size)
 
         provisioning_state = properties.get('provisioningState', '').lower()
         disk_state = properties.get('diskState', '').lower()


Mime
View raw message