Skip to content

Commit 69c171d

Browse files
committed
virsh_nodedev_list: print to log instead of stdio
The test script used `print` to log on error, instead of printing to the test log. Fix that. Suggested-by: Liang Cong <lcong@redhat.com> Signed-off-by: Sebastian Mitterle <smitterl@redhat.com>
1 parent 7afbbd9 commit 69c171d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libvirt/tests/src/virsh_cmd/nodedev/virsh_nodedev_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def get_net_devices():
121121
with open(address_file, "r") as f_addr:
122122
mac = f_addr.read().strip()
123123
except IOError:
124-
print("Cannot get address for device %s" % device)
124+
logging.debug("Cannot get address for device %s" % device)
125125
if mac:
126126
dev_name = re.sub(r"\W", "_", "net_%s_%s" % (device, mac))
127127
else:

0 commit comments

Comments
 (0)