Kaynağa Gözat

Fix gce volume label and remove retrying package

Nuwan Goonasekera 7 yıl önce
ebeveyn
işleme
b7a1c9c37e
2 değiştirilmiş dosya ile 4 ekleme ve 2 silme
  1. 3 1
      cloudbridge/cloud/providers/gce/services.py
  2. 1 1
      setup.py

+ 3 - 1
cloudbridge/cloud/providers/gce/services.py

@@ -1130,7 +1130,9 @@ class GCEVolumeService(BaseVolumeService):
                              zone=zone_name,
                              body=disk_body)
                          .execute())
-        return self.get(operation.get('targetLink'))
+        cb_vol = self.get(operation.get('targetLink'))
+        cb_vol.label = label
+        return cb_vol
 
 
 class GCESnapshotService(BaseSnapshotService):

+ 1 - 1
setup.py

@@ -41,7 +41,7 @@ REQS_AZURE = ['msrest>=0.5.4,<0.6',
               'azure-storage-blob==1.3.1',
               'azure-cosmosdb-table==1.0.4',
               'pysftp==0.2.9']
-REQS_GCP = ['google-api-python-client', 'oauth2client', 'retrying']
+REQS_GCP = ['google-api-python-client', 'oauth2client']
 REQS_OPENSTACK = [
     'openstacksdk>=0.12.0,<=0.17',
     'python-novaclient>=7.0.0,<=11.0',