Skip to content

Commit

Permalink
Fix failing test for install_collection_from_disk
Browse files Browse the repository at this point in the history
  • Loading branch information
audgirka committed Dec 19, 2023
1 parent fb0412b commit 56a852d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ansible_compat/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ def prepare_environment( # noqa: C901
f"{destination}/ansible_collections/{colpath_from_path(Path.cwd())}",
)
if colpath.is_symlink():
if os.path.realpath(colpath) == str(Path.cwd()):
if Path.resolve(colpath) == Path.cwd():
_logger.warning(
"Found symlinked collection, skipping its installation.",
)
Expand Down
4 changes: 2 additions & 2 deletions test/collections/acme.goodies/molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
hosts: localhost
tasks:
- name: "Include sample role from current collection"
include_role:
name: acme.goodies.baz
ansible.builtin.include_role:
name: baz

0 comments on commit 56a852d

Please sign in to comment.