Skip to content

Commit

Permalink
fixed config module usage
Browse files Browse the repository at this point in the history
  • Loading branch information
shitwolfymakes committed Jun 3, 2022
1 parent 1e10d1f commit 3ab895e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arm/ripper/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"""
import sys
import argparse # noqa: E402
import os # noqa: E402
import logging # noqa: E402
import logging.handlers # noqa: E402
from logging import config # noqa: E402
Expand Down Expand Up @@ -151,7 +152,7 @@ def main(logfile, job, protection=0):
arm_log.info("ARM is trying to write a job to the empty.log, or NAS**.log")
sys.exit()
# Check the db is current, if not update it
utils.check_db_version(cfg['INSTALLPATH'], cfg['DBFILE'])
utils.check_db_version(cfg.arm_config['INSTALLPATH'], cfg.arm_config['DBFILE'])
# Sometimes drives trigger twice this stops multi runs from 1 udev trigger
utils.duplicate_run_check(devpath)

Expand All @@ -177,7 +178,7 @@ def main(logfile, job, protection=0):
logging.info(("Python version: " + sys.version).replace('\n', ""))
logging.info(f"User is: {getpass.getuser()}")
# Delete old log files
logger.clean_up_logs(cfg.arm_config["LOGPATH"], cfg["LOGLIFE"])
logger.clean_up_logs(cfg.arm_config["LOGPATH"], cfg.arm_config["LOGLIFE"])
logging.info(f"Job: {job.label}") # This will sometimes be none
# Check for zombie jobs and update status to failed
utils.clean_old_jobs()
Expand Down

0 comments on commit 3ab895e

Please sign in to comment.