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

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":