Fix 'tempest cleanup' for volume service client
In below patch, volume service clients alias in cleint.py has been changed and out under version checks condition. - I1400a870de483f5cdf125eae2a9be68b46b54343 But tempest cleanup cmd used the alias not present for all version and get no attribute error if volume v2 or v3 version is configured. Change-Id: I1d0d86417ce6d92bfa0ef450ceb70dd480978fe1 Closes-Bug: #1727569
This commit is contained in:
parent
05fe4bcb35
commit
5992895eb1
@ -141,7 +141,7 @@ class SnapshotService(BaseService):
|
||||
|
||||
def __init__(self, manager, **kwargs):
|
||||
super(SnapshotService, self).__init__(kwargs)
|
||||
self.client = manager.snapshots_client
|
||||
self.client = manager.snapshots_client_latest
|
||||
|
||||
def list(self):
|
||||
client = self.client
|
||||
@ -319,7 +319,7 @@ class FloatingIpService(BaseService):
|
||||
class VolumeService(BaseService):
|
||||
def __init__(self, manager, **kwargs):
|
||||
super(VolumeService, self).__init__(kwargs)
|
||||
self.client = manager.volumes_client
|
||||
self.client = manager.volumes_client_latest
|
||||
|
||||
def list(self):
|
||||
client = self.client
|
||||
@ -344,7 +344,7 @@ class VolumeService(BaseService):
|
||||
class VolumeQuotaService(BaseService):
|
||||
def __init__(self, manager, **kwargs):
|
||||
super(VolumeQuotaService, self).__init__(kwargs)
|
||||
self.client = manager.volume_quotas_client
|
||||
self.client = manager.volume_quotas_v2_client
|
||||
|
||||
def delete(self):
|
||||
client = self.client
|
||||
|
Loading…
Reference in New Issue
Block a user