Skip to content

Commit fed3f88

Browse files
committed
conditionally print info log
1 parent cff7975 commit fed3f88

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

libvirtnbdbackup/restore/vmconfig.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ def removeMacAddress(vmConfig: str) -> bytes:
9898
try:
9999
logging.info("Removing mac address settings from vm config.")
100100
interfaces = tree.xpath("/domain/devices/interface")
101+
if interfaces:
102+
logging.info("Removing mac address settings from vm config.")
101103

102104
removed_count = 0
103105
for interface in interfaces:

0 commit comments

Comments
 (0)