mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-26 07:08:05 +00:00
Narrow down with pool searching existing volume while creating instance from template/flavour
This commit is contained in:
@@ -100,8 +100,11 @@ class wvmCreate(wvmConnect):
|
||||
else:
|
||||
return 'raw'
|
||||
|
||||
def get_volume_path(self, volume):
|
||||
storages = self.get_storages(only_actives=True)
|
||||
def get_volume_path(self, volume, pool=None):
|
||||
if not pool:
|
||||
storages = self.get_storages(only_actives=True)
|
||||
else:
|
||||
storages = [pool,]
|
||||
for storage in storages:
|
||||
stg = self.get_storage(storage)
|
||||
if stg.info()[0] != 0:
|
||||
|
||||
Reference in New Issue
Block a user