mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-06-04 03:19:38 +00:00
The storage pool path should be allowed to contain '-' and '_'
Signed-off-by: herengui <herengui@uniontech.com>
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user