Fix qvm-block lists internal volumes on non default pools

This commit is contained in:
Bahtiar `kalkin-` Gadimov 2016-08-29 17:38:31 +02:00
parent 3e30dc17cb
commit bbcf16410c
No known key found for this signature in database
GPG Key ID: 96ED3C3BA19C3DEE

View File

@ -113,6 +113,8 @@ def list_volumes(args):
for domain in domains: # gather the domain names
try:
for volume in domain.attached_volumes:
if not args.internal and volume.internal:
continue
try:
volume_data = vd_dict[volume.pool][volume.vid]
volume_data.domains += [(domain.name, volume.name)]