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

Workaround issue #663

do not confuse a network volume with a network interface
This commit is contained in:
fangebee 2025-03-13 18:17:21 +01:00 committed by GitHub
parent fb108f9ac9
commit 8c4f1d9fe8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -631,7 +631,7 @@ class wvmInstance(wvmConnect):
dev_type = dev.get("type")
dev_device = dev.get("device")
if dev_type == "file":
if dev_type == "file" or (dev_device == "disk" and dev_type == "network"):
dev_target = dev.find("target").get("dev")
elif dev_type == "network":