Skip to content

Commit

Permalink
Use os.sep instead of /
Browse files Browse the repository at this point in the history
  • Loading branch information
cinek810 authored and LegenJCdary committed Feb 4, 2022
1 parent a7c25e1 commit 2b64673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible_deploy/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def main():
else:
lockdir = os.path.join(conf["global_paths"]["work_dir"], "locks")
inv_file = get_inventory_file(config, options)
lockpath = os.path.join(lockdir, inv_file.replace("/", "_"))
lockpath = os.path.join(lockdir, inv_file.replace(os.sep, "_"))
if subcommand == "run":
workdir = create_workdir(start_ts, conf["global_paths"]["work_dir"])
setup_ansible(config["tasks"]["setup_hooks"], options["commit"], workdir)
Expand Down

0 comments on commit 2b64673

Please sign in to comment.