Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add install_collection_from_disk method #67

Merged
merged 1 commit into from
Sep 4, 2021
Merged

Add install_collection_from_disk method #67

merged 1 commit into from
Sep 4, 2021

Conversation

ssbarnea
Copy link
Member

@ssbarnea ssbarnea commented Sep 2, 2021

As ansible-galaxy can install collections from disk only with 2.10+, we add a new method that can be used with all supported versions of Ansible.

This also enables install_collection to have a force argument.

Related: ansible/molecule#3225 #65

Comment on lines 217 to 218
"--output-path",
tmp_dir,
Copy link
Member

@webknjaz webknjaz Sep 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The option value should reside next to the option value

Suggested change
"--output-path",
tmp_dir,
"--output-path", tmp_dir,

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, black will reformat.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then add ignores. It's ridiculous when a formatter forces keeping tightly coupled things in different places.

src/ansible_compat/runtime.py Outdated Show resolved Hide resolved
As ansible-galaxy can install collections from disk only with 2.10+,
we add a new method that can be used with all supported versions of
Ansible.

This also enables install_collection to have a force argument.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants