1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

The storage pool path should be allowed to contain '-' and '_'

Signed-off-by: herengui <herengui@uniontech.com>
This commit is contained in:
herengui 2022-11-15 17:19:03 +08:00
parent 7db75784c6
commit fea1571e1a
3 changed files with 54 additions and 93 deletions

View file

@ -135,10 +135,7 @@ class VolumeViewSet(viewsets.ViewSet):
)
state = conn.is_active()
if state:
volume_queryset = conn.get_volume_details(pk)
else:
volume_queryset = None
volume_queryset = conn.get_volume_details(pk) if state else None
conn.close()
serializer = VolumeSerializer(
volume_queryset, many=False, context={"request": request}