From 83d0aa98992b4595782aa2aa9baf81d0f672b9fb Mon Sep 17 00:00:00 2001 From: chunfuwen Date: Wed, 6 Apr 2022 06:35:03 -0400 Subject: [PATCH] Fix avocado-vt issue:https://github.com/avocado-framework/avocado-vt/issues/3391 Error running method "initialize" of plugin "vt-init": cannot import name 'log_line' when import from virttest import utils_misc in python terminal virttest/utils_logfile.py and virttest/utils_misc.py duplicate the same code : def log_line(filename, line) implementation need change virttest/ip_sniffing.py to import log_line from virttest/utils_logfile.py Signed-off-by: chunfuwen --- virttest/ip_sniffing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virttest/ip_sniffing.py b/virttest/ip_sniffing.py index 5c711f21fd..53afb4d023 100644 --- a/virttest/ip_sniffing.py +++ b/virttest/ip_sniffing.py @@ -18,7 +18,7 @@ import six -from virttest.utils_misc import log_line +from virttest.utils_logfile import log_line from virttest.utils_version import VersionInterval LOG = logging.getLogger('avocado.' + __name__)