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 7ee3faa commit 40cd90e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/molecule/provisioner/ansible.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,9 @@ 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):
LOG.debug(f"Required symlink {target} to {source} exist, skip creation")
LOG.debug(
f"Required symlink {target} to {source} exist, skip creation",
)
continue
LOG.debug(f"Required symlink {target} exist with another source")
os.remove(target)
Expand Down

0 comments on commit 40cd90e

Please sign in to comment.