Skip to content

Commit

Permalink
Fix avocado-vt issue:avocado-framework#3391
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
chunfuwen committed Apr 6, 2022
1 parent 8b07a6a commit 83d0aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virttest/ip_sniffing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down

0 comments on commit 83d0aa9

Please sign in to comment.