Skip to content

Commit

Permalink
Vars stripped for logger in lock_inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
LegenJCdary committed Feb 9, 2022
1 parent 5ee08b3 commit f758bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible_deployer/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def lock_inventory(lockdir: str, lockpath: str):
with open(lockpath, "r", encoding="utf8") as fh:
proc_pid, proc_user = fh.readlines()
logger.error("Another process (PID: %s) started by user %s is using this infrastructure, "
"please try again later.", proc_pid, proc_user)
"please try again later.", proc_pid.strip(), proc_user.strip())
logger.error("Program will exit now.")
sys.exit(61)
except Exception as exc:
Expand Down

0 comments on commit f758bec

Please sign in to comment.