Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 8, 2024
1 parent 25a06ba commit a8284ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/molecule/provisioner/ansible.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,10 +906,10 @@ def _link_or_update_vars(self):
util.sysexit_with_message(msg)
if os.path.exists(target):
if os.path.realpath(target) == os.path.realpath(source):
msg=f"Required symlink {target} to {source} exist, skip creation"
msg = f"Required symlink {target} to {source} exist, skip creation"
LOG.debug(msg)
continue
msg=f"Required symlink {target} exist with another source"
msg = f"Required symlink {target} exist with another source"
LOG.debug(msg)
os.remove(target)
msg = f"Inventory {source} linked to {target}"
Expand Down

0 comments on commit a8284ee

Please sign in to comment.