Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 2252794

Browse files
committed
VirtualDisk: Fix use of conn in is_conflict_disk
1 parent e92905f commit 2252794

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

virtinst/VirtualDisk.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1307,8 +1307,11 @@ def is_conflict_disk(self, conn, return_names=False):
13071307
if not path:
13081308
return False
13091309

1310+
if not conn:
1311+
conn = self.conn
1312+
13101313
check_conflict = self.shareable
1311-
names = self.path_in_use_by(self.conn, path,
1314+
names = self.path_in_use_by(conn, path,
13121315
check_conflict=check_conflict)
13131316

13141317
ret = False

0 commit comments

Comments
 (0)