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 2020/09/03 11:02:09 UTC

[libcloud] 02/04: Adds the users field to the extra info in a storage volume making it possible to see if and where a volume is attached

This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit f26c6b5e94ccc658e365241880abd702c7c82da7
Author: Poul Petersen <pe...@alleft.com>
AuthorDate: Wed Sep 2 18:26:25 2020 -0700

    Adds the users field to the extra info in a storage volume making it possible to see if and where a volume is attached
---
 libcloud/compute/drivers/gce.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libcloud/compute/drivers/gce.py b/libcloud/compute/drivers/gce.py
index dbc3977..ccefa0b 100644
--- a/libcloud/compute/drivers/gce.py
+++ b/libcloud/compute/drivers/gce.py
@@ -9137,6 +9137,7 @@ class GCENodeDriver(NodeDriver):
         extra['options'] = volume.get('options')
         extra['labels'] = volume.get('labels', {})
         extra['labelFingerprint'] = volume.get('labelFingerprint')
+        extra['users'] = volume.get('users', [])
 
         if 'licenses' in volume:
             lic_objs = self._licenses_from_urls(licenses=volume['licenses'])