There was an error while loading. Please reload this page.
1 parent cff7975 commit fed3f88Copy full SHA for fed3f88
1 file changed
libvirtnbdbackup/restore/vmconfig.py
@@ -98,6 +98,8 @@ def removeMacAddress(vmConfig: str) -> bytes:
98
try:
99
logging.info("Removing mac address settings from vm config.")
100
interfaces = tree.xpath("/domain/devices/interface")
101
+ if interfaces:
102
+ logging.info("Removing mac address settings from vm config.")
103
104
removed_count = 0
105
for interface in interfaces:
0 commit comments