qvm-pool show pools without volumes
- Only empty `DomainPools` are skipped
This commit is contained in:
		
							parent
							
								
									d3f8fc96e4
								
							
						
					
					
						commit
						f02f6e6337
					
				| @ -85,10 +85,11 @@ def list_pools(app): | |||||||
|     ''' Prints out all known pools and their drivers ''' |     ''' Prints out all known pools and their drivers ''' | ||||||
|     result = [('NAME', 'DRIVER')] |     result = [('NAME', 'DRIVER')] | ||||||
|     for pool in app.pools.values(): |     for pool in app.pools.values(): | ||||||
|         if len(pool.volumes) > 0 and not issubclass( |         if len(pool.volumes) == 0 and issubclass( | ||||||
|                 pool.__class__, qubes.storage.domain.DomainPool): |                 pool.__class__, qubes.storage.domain.DomainPool): | ||||||
|             # skip empty DomainPools |             # skip empty DomainPools | ||||||
|             result += [(pool.name, pool.driver)] |             continue | ||||||
|  |         result += [(pool.name, pool.driver)] | ||||||
|     qubes.tools.print_table(result) |     qubes.tools.print_table(result) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Bahtiar `kalkin-` Gadimov
						Bahtiar `kalkin-` Gadimov