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:
parent
7db75784c6
commit
fea1571e1a
3 changed files with 54 additions and 93 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue