Skip to content

Commit

Permalink
refactor: use absolute import for utility bkr utility library
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Styk <mart.styk@gmail.com>
  • Loading branch information
StykMartin authored and JohnVillalovos committed Aug 3, 2024
1 parent 52b15bd commit aa77288
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LabController/src/bkr/labcontroller/provision.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
import gevent.socket
import pkg_resources
import six
import utils
from daemon import pidfile
from six.moves import xmlrpc_client

from bkr.common.helpers import SensitiveUnicode
from bkr.labcontroller import netboot
from bkr.labcontroller.config import get_conf, load_conf
from bkr.labcontroller.proxy import ProxyHelper
from bkr.labcontroller.utils import get_console_files
from bkr.log import log_to_stream, log_to_syslog

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -241,7 +241,7 @@ def build_power_env(command):


def handle_clear_logs(conf, command):
for filename, _ in utils.get_console_files(
for filename, _ in get_console_files(
console_logs_directory=conf["CONSOLE_LOGS"], system_name=command["fqdn"]
):
truncate_logfile(filename)
Expand Down

0 comments on commit aa77288

Please sign in to comment.