mirror of
				https://github.com/retspen/webvirtcloud
				synced 2025-07-31 12:41:08 +00:00 
			
		
		
		
	Narrow down with pool searching existing volume while creating instance from template/flavour
This commit is contained in:
		
							parent
							
								
									a63e9036fe
								
							
						
					
					
						commit
						a519980610
					
				
					 3 changed files with 7 additions and 4 deletions
				
			
		|  | @ -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: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue